Running PHP Through Crontab

A tidbit I learned from my webhost’s help pages was that you can use the lynx command to run a PHP script. Often webhosts don’t allow PHP to be run easily through crontab because of some kind of permissions stuff that I can’t really get quite clear on. Anyway – here’s the gist:

It is like setting the server to open a webpage as the cron event – just makes it easy to use PHP as your scripting language. This would run the cron event at midnight…

0 0 * * * lynx -dump http://www.yourdomain.com/cronfile.php


Posted

in

by

Tags:

Comments

Leave a Reply

Your email address will not be published. Required fields are marked *