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

What is the proper MariaDB - MySQL import and export format?

The easiest way to import and export a database is via the backup section of our hosting control...

Warning: Unknown(): open_basedir restriction in effect

Basedir restriction is set for security. This most often occurs when you are calling an app...

Internal Server Error with PHPList

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

What version of PHP do you use?

We use both PHP versions 4.4.x and 5.x.

How can I parse html as php?

Create an .htaccess file and upload it to the root of your public_html directory. Include the...