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.
0 */3 * * * "wget http://www.clientsdomain.dk/maintain.php" Although you probably want to redirect stderr and stdout somewhere...