Have you ever written a PHP script for a webpage, and wanted it to run at a specified time? When you compile PHP as a DSO into apache, you have to use a browser to run the script. I often do this to query databases, and import data periodically to another database, using PHP. To automate the task, I use cron to run the PHP script. Here is the format that you need to use in your crontab:
This would have the same effect as the user bringing the PHP script up in a browser, if all the script did was to perform actions, without any required user input.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.