Page 1 of 1

how do i use cronjob to execute my php script

Posted: Sun May 29, 2011 2:54 pm
by adsegzy
Hello friends, i have a php script meant to execute/run my php script (this script is to send databse backup my my email). Using the cronjob panel, i can set the time but i dont know how to set the command in the command space. The Location of the script i want to run is
public_html/phpmysqlautobackup/run.php
pls i need the exact command am to put in the command space. thanks

Re: how do i use cronjob to execute my php script

Posted: Sun May 29, 2011 2:59 pm
by nite4000
can you tell me what system your server is?

you can try this

Code: Select all


/usr/local/bin/php -q  /home/USERNAME/public_html/PATH_TO/FILE.php