|
Posted by Rik Wasmus on 01/08/08 18:52
On Tue, 08 Jan 2008 19:42:20 +0100, Franz Von Bayros
<knotinmybackyard@gmail.com> wrote:
> Hello all.
>
> I have some PHP scripts run by cron that email me all day for no good
> reason. The scripts are outputting warnings like:
>
> PHP Warning: Module 'mysql' already loaded in Unknown on line 0
> PHP Warning: Module 'gd' already loaded in Unknown on line 0
> PHP Warning: Module 'zlib' already loaded in Unknown on line 0
>
>
> The environment is PHP 5.1.2 (cli) under FreeBSD.
>
> The jobs are called like so:
>
> 0,15,30,45 * * * * /usr/local/bin/php -f /www/subsites/whatever/
> htdocs/syncher.php
>
> Though I have also tried this using the -q flag instaed of -f.
>
> Any thoughts on suppressing this?
>
> There doesn't seem to be a flag for it here:
>
> http://us2.php.net/manual/en/features.commandline.php
Why not redirect the errors to /dev/null ? Then again, it's an error which
just should be fixed.
--
Rik Wasmus
Navigation:
[Reply to this message]
|