Re: [PHP] stop standard output in cron jobs

2001-09-25 Thread Brad Hubbard
On Wed, 26 Sep 2001 07:15, bill wrote: > And so sends the resultant e-mail. Can I make it output nothing when > run as a cron job? #!/usr/local/bin/php -q php -h for your future illumination :-) Happy trails, Brad -- Brad Hubbard Congo Systems 12 Northgate Drive, Thomastown, Victoria, Aust

[PHP] stop standard output in cron jobs

2001-09-25 Thread bill
How can I have a script output nothing? I have a script that could be called as an html page or as a cgi script in a cron job. I put ob_start(); at the beginning, and at the end put: if ($argv[1]) { // accessed as cgi via cron ob_end_clean(); } else { // normal access ob_end_flush();