PHP in Cron

In a cron job, when you want to execute a PHP script, you would often use the php command. On the cloud however, we provide three versions of PHP (5.2, 5.3 and 5.4), meaning you need to specify which version you want to execute your cron job with. If you just use php your code will be executed by PHP 5.2.

 

The version binaries are:

PHP 5.2: /usr/bin/php

PHP 5.3: /usr/bin/php-5.3

PHP 5.4: /usr/bin/php-5.4

  • 0 Users Found This Useful
Was this answer helpful?

Related Articles

How to make .htm and .html files execute as PHP

To execute a .htm or .html file as if it were a PHP script, you just need to add the following...

An Introduction to Custom PHP.ini

With so many Content Management Systems available, and each having it's own particulars,...

How to run PHP scripts with a different file extension

Sometimes you might want to execute PHP using a non-PHP file extension, for instance you might...