I have a *.php file that runs on a cron schedule. I have this script
[php]
$db = mysql_connect(“localhost”, “user”, “pass”);
mysql_select_db(“dbname”, $db);
$result = mysql_query(“SELECT * from active”) or die(mysql_error());
$result2 = mysql_query(“SELECT * from archives”) or die(mysql_error());
[/php]
When I run the script I do not get the same errors. These errors only show in the error log of the cron job.
The error is…
/home/user/public_html/wolfpack/script/MO_reader.php: ?php: No such file or directory
/home/user/public_html/wolfpack/script/MO_reader.php: line 2: syntax error near unexpected token mysql_connect("' /home/user/public_html/wolfpack/script/MO_reader.php: line 2:
$db = mysql_connect(“localhost”, “user”, “pass”);’
Thank you for your help. It is of much help.