How do I run a PHP script periodically without having to access it in my browser?
Hello,
If the server your on allows the use of CRON, and it also has lynx, you can setup a cron job to run that just calls lynx to access the site.
Here is a small example. This will run it everynight at 2AM:
0 2 * lynx http://whatever.com/this.php > /dev/null
Bill Van Pelt
Also, if you have the PHP CGI executable available to you, you could setup the crontab entry to execute:
"/path/to/php/php -q /path/to/your/script.php"
-Josh