Running a PHP file with a cron job

To run a PHP file from cron, use the "cron jobs" section of your control panel. Use the following line and modify it for your account and filename and location:

php -q -f /home/username/public_html/location/script.php

  • 286 Users Found This Useful

Was this answer helpful?

Related Articles

How to Disable XCache for a Domain

On many of our servers xcache is use as part of the php caching mechanism. If you are...

Internal Server Error with PHPList

PHPList produces internal server error. Checking error logs results in: Invalid command...

Clean - Shrink ibdata1

To shrink ibdata1 once and for all you must do the following: MySQLDump all databases into a...

Warning: system() has been disabled for security reasons

system is a feature of php which is disabled by default. To change this if needed for a...

How do I update my version of PHP?

PHP needs to be updated. What do I do?We make changing your version of PHP easy. Simply login to...