Xrproto Waste of e-space Aug 1, 2006 1,871 13 0 Jan 31, 2007 #1 Does anyone know how to set up a cron job for a php script in cpanel? I've never set up a cron job before.
Does anyone know how to set up a cron job for a php script in cpanel? I've never set up a cron job before.
theNOTO New member Jun 24, 2006 303 2 0 OH Jan 31, 2007 #2 If php is set up as a cgi, you can call it just like any other cron job. If it's not set up as a cgi, you can use wget: wget -O /dev/null http://www.yoursite.com/script.php Reactions: Xrproto
If php is set up as a cgi, you can call it just like any other cron job. If it's not set up as a cgi, you can use wget: wget -O /dev/null http://www.yoursite.com/script.php
grandcartel Grand Cartel Properties Jan 28, 2007 55 1 0 Queens, NYC Jan 31, 2007 #3 Cron Generator - generates cron entry format with instructions Reactions: Xrproto
Stanley Banned Jun 24, 2006 3,399 43 0 San Diego Jan 31, 2007 #5 the command to execute any php script is very simple: php /location/of/the/script that will automatically call the php rendering engine, no need for wget
the command to execute any php script is very simple: php /location/of/the/script that will automatically call the php rendering engine, no need for wget
Xrproto Waste of e-space Aug 1, 2006 1,871 13 0 Jan 31, 2007 #6 stanley said: the command to execute any php script is very simple: php /location/of/the/script that will automatically call the php rendering engine, no need for wget Click to expand... I haven't set it up yet so when you say "/location/of/the/script" Would that be "/public_html/somefolder/somefolder/script.php"?
stanley said: the command to execute any php script is very simple: php /location/of/the/script that will automatically call the php rendering engine, no need for wget Click to expand... I haven't set it up yet so when you say "/location/of/the/script" Would that be "/public_html/somefolder/somefolder/script.php"?
Xrproto Waste of e-space Aug 1, 2006 1,871 13 0 Jan 31, 2007 #7 Also, do I have to put anything in the script I plan on executing or do I just put that command in the cron job?
Also, do I have to put anything in the script I plan on executing or do I just put that command in the cron job?