shell script - disable log output

From: Date: Wed, 09 Mar 2005 20:59:37 +0000
Subject: shell script - disable log output
Groups: php.general 
Request: Send a blank email to php-general+get-210356@lists.php.net to get a copy of this message
Hello... I'm writing a shell script that uses error_log function to log some data, but it echos the error message to the output without logging the message to the log file. Code I use (php5 on unix): ********************************************* #!/usr/local/php/bin/php -q <?php error_log("My error message"); ?> ********************************************* OUTPUT: $ test.php My error message $ How can I prevent the error messages from being echoed to the client? -thanks, Eli

« previous php.general (#210356) next »