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();
}
Yet, when run as a cron job, it still outputs two lines:
X-Powered-By: PHP/4.0.6
Content-type: text/html
And so sends the resultant e-mail. Can I make it output nothing when
run as a cron job?
kind regards,
bill hollett
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]