Custom crontab running clients PHP file

Discussion in 'General' started by Thomas Jensen, Aug 30, 2009.

  1. Thomas Jensen

    Thomas Jensen New Member

    One of my clients would like a PHP file to be run as a crontab every third hour.
    I thought of something like:
    0 */3 * * * "php -q /var/www/clientsdomain.dk/web/maintain.php"
    But the file should be run just like it was one of his visitors who visited the file through a browser. So he can include files and so on.

    Thanks in advance.
     
  2. id10t

    id10t Member

    0 */3 * * * "wget http://www.clientsdomain.dk/maintain.php"

    Although you probably want to redirect stderr and stdout somewhere...
     

Share This Page