Re: shell script - disable log output

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



John Nichel wrote:

Try output buffering and dumping the buffer to /dev/null?


From all the suggestions the script now looks like this:

#!/usr/local/php5/bin/php -q
<?php
ob_start();
ini_set("error_log",null);
@error_log("My error message");
ob_end_clean();
?>

But it still output the error to the screen.. :(

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux