You are here: Re: [PHP] shell script - disable log output « PHP « IT news, forums, messages
Re: [PHP] shell script - disable log output

Posted by Matthew Fonda on 09/25/29 11:10

I suppose error_log("My error message", 3, "/dev/null") would work.

On Wed, 2005-03-09 at 12:59, 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?
>
> -thanks, Eli
--
Regards,
Matthew Fonda
http://mfonda.info

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация