There are a number of options available to call a PHP script page from a Cron job. The option to use depends very much on your web host and how they have their servers configured. Option 2 is the one that I have found to work for me.
Option 1:
lynx -dump http://www.domain.com/file.php > /dev/null
Option 2:
php -q /home/username/public_html/file.php >/dev/null
Option 3:
wget http://www.domain.com/file.php
Option 4:
get http://www.domain.com/backup.php > /dev/null
No comments:
Post a Comment