syntax - How to write a Cron Job to execute simple php script? -


i have php script on server , want run every 2 minutes using cron job.

*/2 *   *   *   *   http://mydomain.com/_adder.php 

i suspect command syntax wrong.

do need add command before script url? way run script?

any appreciated.

the cron-job execute program on (local) machine.

a url not program. it's link ressource.

whether ressource triggers php-script execution not of cron's business.

in case, run cron-job periodically visit given url. e.g. using wget command (a "non-interactive web-page downloader")

*/2 *   *   *   *   wget --quiet -o /dev/null http://mydomain.com/_adder.php 

Comments

Popular posts from this blog

java.util.scanner - How to read and add only numbers to array from a text file -

rewrite - Trouble with Wordpress multiple custom querystrings -