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

Published by <span class='p-author h-card'>Andy</span>

Gay Hoosier Taurus INFJ ex-playwright pianist gymbunny published author in San Francisco.