Log in

View Full Version : How to add a cron job?:S [REWARD]



Vase
10-04-2012, 12:10 PM
So yeah it says on http://justfive.org (http://justfive.org/) that I have to add a cron job (I don't run the site, just helping a mate whos away on holiday)

I get this;
http://d.pr/V98T

Now its under public_html and the cron is obviously
http://justfive.org/cron.php

But what do I add here?
http://d.pr/KZRr

PATH-TO-PHP -q FULL-LOCAL-PATH-TO-DOMAIN/cron.php

Much help appreciated guys!!!




REWARD VIA PAYPAL IF WORKS!

MrCraig
12-04-2012, 03:21 AM
Been ages since I did any web dev, but 1 in the hour field, and the command as

PATH-TO-PHP -q FULL-LOCAL-PATH-TO-DOMAIN/cron.php

where path-to-php is the location of your php.ini file, and the full local path is the location of cron.php as above.

iLogan
12-04-2012, 01:23 PM
Under common settings put how often you want the cron job to happen

Under path type:


php /link/to/file.php

But remember to update the link/to/file so it'll be something like home/justfi/public_html/cron.php

Want to hide these adverts? Register an account for free!