Reply to Re: [PHP] shell script - disable log output

Your name:

Reply:


Posted by John Nichel on 10/04/95 11:10

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

[Back to original 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

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