Boo-urns Posted February 13, 2009 Share Posted February 13, 2009 I've set up a few crons before but have never come across this error. Any suggestions? /home/myusername/public_html/scripts/php/cron-bar-rank.php: line 1: ?php: No such file or directory /home/myusername/public_html/scripts/php/cron-bar-rank.php: line 2: syntax error near unexpected token `$_SERVER['DOCUMENT_ROOT'].'/scripts/conn.php'' /home/myusername/public_html/scripts/php/cron-bar-rank.php: line 2: `include($_SERVER['DOCUMENT_ROOT'].'/scripts/conn.php');' and here is the php file. <?php include($_SERVER['DOCUMENT_ROOT'].'/scripts/conn.php'); // i've tried changing it to conn.php and threw it in the same folder as the cron script still no luck // i've tried just copying the connection info onto the page no luck again Thanks in advance! -Corey Quote Link to comment https://forums.phpfreaks.com/topic/145043-solved-cron-error/ Share on other sites More sharing options...
Boo-urns Posted February 14, 2009 Author Share Posted February 14, 2009 alright got it fixed! It doesn't like it setup the standard way have to use advanced. Quote Link to comment https://forums.phpfreaks.com/topic/145043-solved-cron-error/#findComment-761866 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.