display_errors = On not showing up in phpinfo() [SOLVED]

Need help installing PHP, configuring a script, or configuring a server? Then come on in and post your questions! We'll try to help the best we can!

Moderator: General Moderators

Post Reply
hardi
Forum Newbie
Posts: 2
Joined: Fri Sep 14, 2007 11:44 am

display_errors = On not showing up in phpinfo() [SOLVED]

Post by hardi »

So that's the problem. I made a fresh install of PHP 5.2.4 Apache 2.2.6 and Mysql5.0.45.
I set the display_errors value to On in php.ini, but phpinfo() shows that display_errors is Off.
I have restarted the webserver and my computer but nothing changed. When I write a faulty script and run it from command line, it produces an error, but when run through apache, it gives no errors. The phpinfo() outputs the right php.ini filename, which I edited - so it's not reading a wrong php.ini file.

What could be the problem?
Last edited by hardi on Sat Sep 15, 2007 3:54 am, edited 1 time in total.
User avatar
anjanesh
DevNet Resident
Posts: 1679
Joined: Sat Dec 06, 2003 9:52 pm
Location: Mumbai, India

Post by anjanesh »

Have you tried refreshing the page after clearing the cache ?
hardi
Forum Newbie
Posts: 2
Joined: Fri Sep 14, 2007 11:44 am

SOLVED

Post by hardi »

there were 2 evaluations in php.ini both were display_errors = somevalue.
when setting the value, I searched for display_errors and changed it and expected it to change in phpinfo() too, but it didn't, because later in the file, there was another display_errors = Off and that pretty much nilled my effort.
User avatar
pickle
Briney Mod
Posts: 6445
Joined: Mon Jan 19, 2004 6:11 pm
Location: 53.01N x 112.48W
Contact:

Post by pickle »

Thanks for posting the solution.
Real programmers don't comment their code. If it was hard to write, it should be hard to understand.
Post Reply