Auto Update

sensitiveforce

New Member
Messages
9
Reaction score
0
Points
0
website: sensitiveforce.x10hosting.com
this is a comic website, where a file needs to be run everyday at 12:00 every morning. This updates the comic and sets the comic for that day to live. How can i get this script to run at 12:00 every morning?
 

TechAsh

Retired
Messages
5,853
Reaction score
7
Points
38
You will need to set-up a CRON job. This can be done from cPanel.

If it is a PHP script use this command:
php -q FULL/PATH/TO/SCRIPT
 

taekwondokid42

New Member
Messages
268
Reaction score
0
Points
0
Being more specific:

Go to cron jobs in your cpanel. click on advanced. set up the first five fields to be 00*** respectively.

In the next set, put /usr/local/bin/php -q ./public_html/filepath/file.extension.

You would need to change the '/filepath/file.extension to where ever and whatever the file is.

From there, just hit 'Commit Changes'.

That should do what you need it to. :)
 

TechAsh

Retired
Messages
5,853
Reaction score
7
Points
38
/usr/local/bin/php -q ./public_html/filepath/file.extension
This should be:
php -q /home/USERNAME/public_html/filepath/file.extension
(You need to use the full path to the file, also the "/usr/local/bin/" bit isn't needed)
 
Top