Re: error messages

From: Date: Fri, 05 Oct 2007 15:26:52 +0000
Subject: Re: error messages
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-262814@lists.php.net to get a copy of this message
tbt wrote:
Hi I'm a newbie to php and i would like to know a way of viewing runtime errors on the browser. Currently when an error occurs nothing is displayed on the browser. Is there any way of viewing all error messages on the browser itself. Thanks
From what I read in your other posts, it sounds like you have a parse error in your script. Even if you place the lines at the top of scripts as others have suggested, it will not fix your issue if your script has a parse error in it. This is because PHP pre-parses each script. But only after it is able to parse all the scripts, does it actually start running the script(s). My suggestion is to use modify the php.ini file directly and change the values that the others have suggested or, if you're using Apache, use a .htaccess file with the values set to force(on startup) php to display errors. This has bit me in the rear a few times myself. So, in your php.ini file, set these: display_errors = On error_reporting = E_ALL and if you have to use a .htaccess file, do this php_value error_reporting E_ALL php_value display_errors On Doing a quit google search I found this. It might be good reading for you. http://www.nyphp.org/phundamentals/ini.php -- Jim Lucas "Some men are born to greatness, some achieve greatness, and some have greatness thrust upon them." Twelfth Night, Act II, Scene V by William Shakespeare

« previous php.general (#262814) next »