Using Cron To Run Php Script

liunx

Guest
I was having all kinds of minor problems getting phpauction to update, but thanks to the forum and the help desk, I finally got on the right tract. Only wasted a few days trying to get a script that was meant for a dos server to work here. Oh well, life is for learning. Come to find out, the update file was named cron.php (go figure)!<br /> To get the php file to run in cron, I did have to add php in front of the full path. <br /><br /> <!--coloro:blue--><span style="color:blue"><!--/coloro-->php /home/alltherestofthepath/cron.php<!--colorc--></span><!--/colorc--> <br /><br /> That little tidbit was found on one of the other discussions here, so again, thanks for a good forum! Rock Sign<!--content-->
And thank you for the update.<br />This type of feedback always helps others.<br />Thats what makes us family <img src="http://www.totalchoicehosting.com/forums/style_emoticons/default/smile.gif" style="vertical-align:middle" emoid=":)" border="0" alt="smile.gif" /><!--content-->
I just registered on this forum for the sole purpose of thanking you for this info - I am not a noob to this sort of stuff, but it has taken me hours of searching google to come up with a solution to executing a php file with cron on cpanel.<br /><br />So simple all you need to do is put<br /><br />php /home/alltherestofthepath/cron.php<br /><br />in the "command" box.<br /><br />...so simple it is painfull <img src="http://www.totalchoicehosting.com/forums/style_emoticons/default/rolleyes.gif" style="vertical-align:middle" emoid=":rolleyes:" border="0" alt="rolleyes.gif" /> <br /><br />Thanks...<!--content-->
Glad you found it useful. <img src="http://www.totalchoicehosting.com/forums/style_emoticons/default/smile.gif" style="vertical-align:middle" emoid=":)" border="0" alt="smile.gif" /><!--content-->
 
Top