These forums are locked and archived, but all topics have been migrated to the new forum. You can search for this topic on the new forum: Search for How to create cron job that executes PHP script on the new forum.
I know there is a cron job module in Webmin, but it seems to be only for executing commands, not PHP scripts. How can I set up a cron job that executes a PHP script?
Also, does anyone know of a web-based GUI for creating PHP cron jobs? (like a phpMyAdmin of cron jobs)
Thanks!
Grant
Howdy,
but it seems to be only for executing commands, not PHP scripts. How can I set up a cron job that executes a PHP script?
Cron executes "commands" -- that's all it's able to do :-) Anything you want cron to be able to do, you'd need to be able to execute from the command line as a command.
So the trick is to figure out how to accomplish what you want from the command line. It's possible to make a PHP script work from the command line. It's also possible to use something like wget to call a web page URL from within Cron.
-Eric