Page 1 of 1

No Errors Shown

Posted: Mon Dec 19, 2005 2:03 pm
by techlinks
Hello:

I've followed the instructions to deploy PHP & Apache on a Win32 box per the following instructions:

http://www.php.net/manual/en/install.wi ... pache2.php
http://www.thesitewizard.com/archive/php4install.shtml

...and I can successfully read/write PHP apps. The problem I'm facing now is that if I have an error in my code, I don't see it display online? Instead, whenever/wherever I have a coding script error, I get a blank screen. For instance:

The following code works perfect:

Code: Select all

<?PHP

echo phpinfo();

?>
However, if I enter the following:

Code: Select all

<?PHP

echo phpinfo();
echo "notice I don't have a closing double quotes...

?>
...I get a blank screen when running the script in my browser. Is there a setting in my PHP.INI I have to set in order to see errors? Without it, it's very difficult to fix errors when I eventually get them :)

Thanks

Lester

Posted: Mon Dec 19, 2005 2:08 pm
by hawleyjr
Do a search for "Error" in your INI file.

Code: Select all

error_reporting  =  E_ALL & ~E_NOTICE & ~E_STRICT

Posted: Mon Dec 19, 2005 2:10 pm
by feyd
*cough* make sure to leave notices on...



*grumble-grumble*


There's another pesky setting to look at like display_errors..

Resolved

Posted: Mon Dec 19, 2005 5:18 pm
by techlinks
Thank you both for your reply. I changed the following in my PHP.INI:

error_reporting = E_ALL
display_errors = On

...and now I can see errors. By the way, without "display_errors = On", I still would not see errors online.