I have the following in my php.ini file:
display_errors=Off
log_errors=On
error_log="filename"
I want to turn on display_errors for developers, I'm attempting to use
ini_set to do this. I made a script like:
<?php
ini_set('display_errors',1);
ini_set('log_errors',0);
ini_set('error_log',null);
ini
phpinfo();
?>
(I added log_errors and error_log lines in an attempt to get this
working)
The phpinfo() shows that the local values for the variables I set as I
just set them, and the master values are those of the php.ini file.
Everything looks how I what it. If I add an error:
echo "asdfadf"asdfa;
The script behaves as it would in the php.ini, it displays no error and
writes it to the log. Does anybody have any ideas on why this isn't
working?
--
Jeff Bearer, RHCE
Webmaster
PittsburghLIVE.com
2002 EPpy Award, Best Online U.S. Newspaper
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php