RE: error messages

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



> -----Original Message-----
> From: Paul Scott [mailto:pscott@xxxxxxxxx]
> Sent: 05 October 2007 06:44
> 
> On Thu, 2007-10-04 at 22:38 -0700, tbt wrote:
> > 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.
> > 
> 
> You can up the error_reporting level in your php.ini, or you 
> can simply
> put the following line at the top of your script:
> 
> ini_set("error_reporting", "E_ALL");
> 
> or for an even stricter setting:
> 
> ini_set("error_reporting", "E_STRICT");

Er, no, actually that's much *less* strict, as it won't display any of the E_ALL errors; I think you meant:

   ini_set("error_reporting", E_ALL & E_STRICT);


Cheers!

Mike

---------------------------------------------------------------------
Mike Ford,  Electronic Information Services Adviser,
JG125, The Headingley Library,
James Graham Building, Leeds Metropolitan University,
Headingley Campus, LEEDS,  LS6 3QS,  United Kingdom
Email: m.ford@xxxxxxxxxxxxxx
Tel: +44 113 812 4730          Fax:  +44 113 812 3211 


To view the terms under which this email is distributed, please go to http://disclaimer.leedsmet.ac.uk/email.htm

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux