943,552 Members | Top Members by Rank

Ad:
  • PHP Discussion Thread
  • Unsolved
  • Views: 1391
  • PHP RSS
May 19th, 2008
0

error_reporting() doesn't seem to work

Expand Post »
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
Similar Threads
Reputation Points: 10
Solved Threads: 0
Newbie Poster
guido_sarducci is offline Offline
3 posts
since Nov 2007
May 19th, 2008
0

Re: error_reporting() doesn't seem to work

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
Team Colleague
Reputation Points: 26
Solved Threads: 10
Marketing Consultant
JonathanD is offline Offline
161 posts
since Aug 2005
May 20th, 2008
0

Re: error_reporting() doesn't seem to work

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
Reputation Points: 10
Solved Threads: 0
Newbie Poster
guido_sarducci is offline Offline
3 posts
since Nov 2007

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in PHP Forum Timeline: Php Mysql : Code for Multiple Field Search
Next Thread in PHP Forum Timeline: progress bar





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC