Re: shell script - disable log output

From: Date: Wed, 09 Mar 2005 21:54:55 +0000
Subject: Re: shell script - disable log output
References: 1 2 3 4 5  Groups: php.general 
Request: Send a blank email to php-general+get-210372@lists.php.net to get a copy of this message
Eli wrote:
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.. :(
I saw someone suggest this.... error_log ( "My error message", 3, "/dev/null" ); And that works fine on my machine...have you tried that? -- John C. Nichel ÜberGeek KegWorks.com 716.856.9675 john@kegworks.com

« previous php.general (#210372) next »