How can I execute PHP scripts via cron?
Posted by Diego Cousinet on 17 February 2011 03:47 PM

When you are creating or editing a Cron Job in the control panel:


  • To execute your script in PHP version 5, enter this line in the form:
/usr/local/bin/php /home/user/website/script.php
  • If your script needs to be run in PHP version 4, your script line will need to be like this in the form:
/usr/local/bin/php4 /home/user/website/script.php

Note: Make sure you use the full path for any files you include.


How do I execute website url via cron ?


lynx -dump "http://..." > filename


lynx -dump "http://..." >  /dev/null



(35 vote(s))
Not helpful

Comments (0)