guttyguppy Posted September 20, 2007 Share Posted September 20, 2007 Line 74 of my php.ini file reads as follows: display_errors = On Still, I can't see php errors, and my phpinfo.php file shows that it is off. I'm using php 5.2.4. I've restarted apache. Am I doing something wrong? Quote Link to comment Share on other sites More sharing options...
Jessica Posted September 20, 2007 Share Posted September 20, 2007 You want to set it to 1, I think. It's a boolean, 0 or 1. Quote Link to comment Share on other sites More sharing options...
guttyguppy Posted September 21, 2007 Author Share Posted September 21, 2007 Nope, it's either Off or On. Quote Link to comment Share on other sites More sharing options...
Jessica Posted September 21, 2007 Share Posted September 21, 2007 Well considering the manual says the default is 1, excuuuuse me. Also, I use PHP5 and I set it to 1 or 0 and it always works to turn it on and off. Does it work if you use ini_set? With the version of PHP you're using, perhaps you should try setting it to "stdout". Quote Link to comment Share on other sites More sharing options...
guttyguppy Posted September 21, 2007 Author Share Posted September 21, 2007 Funny, everywhere I look it seems like display_errors = Off/On is standard -e.g., http://articles.techrepublic.com.com/5100-22-5268948.html. What manual are you reading? It doesn't seem to matter-I tried 0/1 but it doesn't change it. Might it matter that I'm running os x.4 and using Textwrangler to edit the file? Quote Link to comment Share on other sites More sharing options...
darkfreaks Posted September 21, 2007 Share Posted September 21, 2007 im getting ahead of my self sorry jesi! zero is indeed off and 1 is on. in your info.php put error_reporting(1); ini_set('error_reporting', E_ALL); see if you get any errors Quote Link to comment Share on other sites More sharing options...
Jessica Posted September 21, 2007 Share Posted September 21, 2007 The PHP Manual, smartass. http://www.php.net/manual/en/ref.errorfunc.php It says "1". Not "on". Using ini_set('display_errors', 1); works on my PHP4 and 5 systems on Linux. I don't know if Mac's are different. You didn't bother to answer my other questions, so I guess you didn't try either suggestion. Good luck. darkfreaks, why would 2 mean off? That doesn't sound right at all...where do you see that? If anything, 1 means on and 0 means off. Quote Link to comment Share on other sites More sharing options...
guttyguppy Posted September 21, 2007 Author Share Posted September 21, 2007 Yeah all that is for turning on display_errors on a php file, not in the php.ini file which was my original question-the one located at /usr/local/php5/lib/php.ini I was just wondering what manual you were reading said that you could set display_errors = 1 (or = anything not on.off for that matter) in your php.ini file and have that work, not trying to be a smartass. Quote Link to comment Share on other sites More sharing options...
guttyguppy Posted September 21, 2007 Author Share Posted September 21, 2007 OK, I figured it out-Line 74 is a comment, but the one I was supposed to change was on line 372. Sorry for all the confusion, gnite y'all. Quote Link to comment Share on other sites More sharing options...
darkfreaks Posted September 21, 2007 Share Posted September 21, 2007 topic solved then thanks! Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.