Re: shell script - disable log output

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

 



Eli wrote:
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?

Try....

@error_log ( "My error message" );

Don't know if it will work, but it's worth a shot.

--
John C. Nichel
ÃberGeek
KegWorks.com
716.856.9675
john@xxxxxxxxxxxx

--
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