Go Back   TechArena Community > Software > Software Development
Become a Member!
Forgot your username/password?
Tags Active Topics RSS Search Mark Forums Read

Reply
 
Thread Tools Search this Thread
  #1  
Old 30-06-2009
Member
 
Join Date: Jan 2009
Posts: 97
Want php to show warnings & errors

Hello everyone,
Messed up with working with a server,on php platform,making always disturbance with lots of adhoc scripts which running to turn the warnings and errors on the server in the php.ini file.my question is how can i plan the warnings and errors to display on a per page/script basis? I just need to include in each file one line of code

Any help would be greatly received...
Reply With Quote
  #2  
Old 30-06-2009
Member
 
Join Date: Apr 2008
Posts: 2,001
Re: Want php to show warnings & errors

display errors allows that all reported errors are actually output to the browser.error reporting emphasizes which types errors should be logged/displayed.while for a live server, it's a good idea to not to display errors publicly .set error reporting to a more inclusive value since avoiding errors is generally not appreciable...
Reply With Quote
  #3  
Old 30-06-2009
Member
 
Join Date: Apr 2008
Posts: 1,948
Re: Want php to show warnings & errors

you need to put instructions like this
error_reporting
(E_NOTICE
E_ERROR
E_WARNING
E_PARSE
E_CORE_ERROR | E_CORE_WARNING
E_COMPILE_ERROR | E_COMPILE_WARNING
E_USER_ERROR | E_USER_WARNING | E_USER_NOTICE );
Reply With Quote
  #4  
Old 30-06-2009
Member
 
Join Date: Feb 2008
Posts: 1,848
Re: Want php to show warnings & errors

Friend you have to open your php.ini and search for the option error_reporting.
modify it to E_ALL & ~E_NOTICE.
it can show all errors and warnings,with out notices.
it always better option to use E_ALL on server since we get often notices are signs to potential code problems,things this should help you..
Reply With Quote
Reply

  TechArena Community > Software > Software Development
Tags: , ,



Thread Tools Search this Thread
Search this Thread:

Advanced Search


Similar Threads for: "Want php to show warnings & errors"
Thread Thread Starter Forum Replies Last Post
Getting several Avast warnings Cheenu Networking & Security 5 16-07-2011 07:12 PM
PHP suppress warnings HAKAN Software Development 3 19-06-2009 12:05 PM
silde show and various folder errors HELP!! macca67 Operating Systems 2 12-06-2009 08:47 PM
Show Packet Errors in your Network LAN Connection Status Erskine Tips & Tweaks 0 05-02-2009 11:34 PM
w32time + PDC + External time source = errors + warnings J?j? Windows Server Help 4 15-02-2005 07:19 PM


All times are GMT +5.5. The time now is 08:15 PM.