18
Apr
2010
Just a quick reference guide, I use WGET added to cron to run a PHP script once a day at 7am.
Cron command:
0 7 * * * wget -O - -q -t 1 http://www.example.net/path-to-file/file.php
or we can use Lynx if need-be.
Cron command:
0 7 * * * /usr/bin/lynx --source http://www.example.net/path-to-file/file.php
If the file isn’t on the net, you can also run it by calling PHP direct…
Cron command:
0 7 * * * /usr/local/bin/php -q /htdocs/www/x.php
Remember to check your path to PHP. Hopefully this will help someone looking for the same thing.
Comments (0)
No comments yet! Why not write the first?
Post a comment