View unanswered posts | View active topics It is currently Mon May 23, 2022 1:07 am



Reply to topic  [ 2 posts ] 
 displaying php error messages 
Author Message
Junior Member

Joined: Mon May 14, 2007 2:17 pm
Posts: 2
Post displaying php error messages
HI There,

OK I have now set up Apache and php5 on my machine and can start my php development.

One problem however is that when I run a script in localhost, it either works or I get a blank screen. In other words, if the php script contains any errors these errors are not displayed in the browser window which is what should happen.

Anyone got any ideas ?

regards,

Steven Matthews


Sat May 19, 2007 1:23 am
Report this post
Profile
Junior Member

Joined: Wed Jul 11, 2007 9:02 am
Posts: 2
Post 
ksmatthews wrote:
HI There,

OK I have now set up Apache and php5 on my machine and can start my php development.

One problem however is that when I run a script in localhost, it either works or I get a blank screen. In other words, if the php script contains any errors these errors are not displayed in the browser window which is what should happen.

Anyone got any ideas ?

regards,

Steven Matthews


I suggest looking for your php.ini file (that's under *ix, I don't know what it's called under windows). Look for the directives "error_reporting" and "display_errors". My own config looks like this:

error_reporting = E_ALL & ~E_NOTICE
display_errors = On

I also suggest setting up a info.php file that contains only this:

<? phpinfo(); ?>

And then load that in your web browser. It will cause PHP to spit out all of its configuration into the browser window, and you can look for particular directives (such as "error_reporting" and "display_errors").

Hope that helps!


Wed Jul 11, 2007 10:43 am
Report this post
Profile
Display posts from previous:  Sort by  
Reply to topic   [ 2 posts ] 

Who is online

Users browsing this forum: No registered users and 0 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron
© Copyright 2003-2008 www.php-editors.com. The ultimate PHP Editor and PHP IDE site.