Picky CRON
Posted by: ChuckCheeze
Posted on: 2006-04-03 23:15:00
New to Cron...got the file setup and working, and it emails me when the job doesn't execute correctly.
I am having it execute a PHP file and the email details of the problem are:
xxxxx/makerss.php: line 1: ?php: No such file or directory
xxxxx/makerss.php: line 2: //: is a directory
xxxxx/makerss.php: line 3: syntax error near unexpected token `('
xxxxx/makerss.php: line 3: ` $fp = fopen ("rss.xml", "w");'
and here is the beginning of the PHP file:
<?php
// open a file pointer to an RSS file
$fp = fopen ("rss.xml", "w");
// Now write the header information
fwrite ($fp, "<?xml version='1.0' ?><rss version='2.0'><channel>");
What's going on? If I run the file makerss.php from a browser it executes fine.
Thanks