Re: shell script - disable log output
| From: | Eli | Date: | Wed, 09 Mar 2005 21:45:27 +0000 |
| Subject: | Re: shell script - disable log output | ||
| References: | 1 2 3 4 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-210370@lists.php.net to get a copy of this message | ||
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.. :(