You are using the old school PHP CGI as if it were PHP CLI. Upgrade and use PHP CLI. Or just add -q to the args: 12 6 * * * php -q /home/foo/temp.php php -h will show you the version and nature (CLI/CGI) of PHP you are running, as well as the args and what they do, in rather terse format. ________________________________________ From: Waynn Lue [waynnlue@xxxxxxxxx] Sent: Saturday, September 27, 2008 4:21 AM To: PHP General list Subject: PHP + Cron jobs This is something that I've noticed for awhile, but last post to this mailing list reminded me that someone probably already knows how to work around this! I have a cron job that looks something like 12 6 * * * php /home/foo/temp.php But even if temp.php doesn't output anything, I still get emails from the crontab that consist of "Content-type: text/html" I assume this is happening because it's interpreting as a web page or some such. Is there a better way to set the crontab so I don't get that output? Thanks, Waynn _______________________________________________________ The information in this email or in any file attached hereto is intended only for the personal and confiden- tial use of the individual or entity to which it is addressed and may contain information that is propri- etary and confidential. If you are not the intended recipient of this message you are hereby notified that any review, dissemination, distribution or copying of this message is strictly prohibited. This communica- tion is for information purposes only and should not be regarded as an offer to sell or as a solicitation of an offer to buy any financial product. Email trans- mission cannot be guaranteed to be secure or error- free. P6070214 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php