The Web Hosting Guide
Infotx
Welcome to Infotx - Webmaster Guides and Resources.
Web hosting Cron Jobs.Cron Jobs
|
How can I run a php file using Cron jobs? |
|
From the cPanel, go to Cron jobs, select Standard, and enter (between the quotes) "/usr/bin/php -q /home/USERNAME/public_html/PathToFile" into the Command to run field. You may also want to adjust the settings specifying when to run the cron job. After you finished, click on the SaveCrontab button. |