error_reporting() doesn't seem to work

Reply

Join Date: Nov 2007
Posts: 3
Reputation: guido_sarducci is an unknown quantity at this point 
Solved Threads: 0
guido_sarducci guido_sarducci is offline Offline
Newbie Poster

error_reporting() doesn't seem to work

 
0
  #1
May 19th, 2008
Hi,
I'm trying to not show the user a php error and have tried the following:
error_reporting(0); (may not be the best idea)
error_reporting(E_ERROR);
to remove a warning type error and it doesn't seem to work.

The php version is 4.3.2
display_errors is set to on

Anyone know why this doesn't seem to work for me?

Thanks,
Dave
Reply With Quote Quick reply to this message  
Join Date: Aug 2005
Posts: 160
Reputation: JonathanD is an unknown quantity at this point 
Solved Threads: 10
Team Colleague
JonathanD's Avatar
JonathanD JonathanD is offline Offline
Marketing Consultant

Re: error_reporting() doesn't seem to work

 
0
  #2
May 19th, 2008
Setting it to error_reporting(0) should work, as stated here:

http://www.mcs.vuw.ac.nz/technical/s...reporting.html

but you could try setting new values in a .htaccess file if your server supports it, such as,

display_errors off

within the .htaccess file
Reply With Quote Quick reply to this message  
Join Date: Nov 2007
Posts: 3
Reputation: guido_sarducci is an unknown quantity at this point 
Solved Threads: 0
guido_sarducci guido_sarducci is offline Offline
Newbie Poster

Re: error_reporting() doesn't seem to work

 
0
  #3
May 20th, 2008
error_reporting(0) isn't working and when I place display_errors off in the .htaccess file I can't open the page and get a 500 internal server error!

Thanks but I am still stuck!

Dave
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:


Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC