No Errors Shown

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
techlinks
Forum Newbie
Posts: 18
Joined: Sun Dec 29, 2002 4:00 am

No Errors Shown

Post 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
User avatar
hawleyjr
BeerMod
Posts: 2170
Joined: Tue Jan 13, 2004 4:58 pm
Location: Jax FL & Spokane WA USA

Post by hawleyjr »

Do a search for "Error" in your INI file.

Code: Select all

error_reporting  =  E_ALL & ~E_NOTICE & ~E_STRICT
User avatar
feyd
Neighborhood Spidermoddy
Posts: 31559
Joined: Mon Mar 29, 2004 3:24 pm
Location: Bothell, Washington, USA

Post by feyd »

*cough* make sure to leave notices on...



*grumble-grumble*


There's another pesky setting to look at like display_errors..
techlinks
Forum Newbie
Posts: 18
Joined: Sun Dec 29, 2002 4:00 am

Resolved

Post 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.
Post Reply