I have a PHP script which when called directly it works fine and sends a email like it should. However when I set it up as a cron job i get the follow error emailed to me from the cron software
/home/mysite/public_html/Mailer/index.php: line 1: ?php
: No such file or directory
/home/mysite/public_html/Mailer/index.php: line 2: syntax error near unexpected
token `localhost,'
/home/mysite/public_html/Mailer/index.php: line 2: `mysql_connect (localhost,
**, **);
'
What could be wrong?