OSHS Ltd [GBP]
Please Login or Register

Knowledgebase

Running cronjobs with parameters

To pass GET variables into a PHP file when running from a CRON job. The command should be like the following:-

///<path to php file> -type=<variable value>

The following value will then be passed to the PHP file via the special $argv[1] array:

-type=<variable value>

You can then use the following PHP snippet to extract the actual variable value:

$strController=str_replace('-type=', '', $argv[1]);



Was this answer helpful?

Add to Favourites Add to Favourites

Print this Article Print this Article


Quick Navigation

Client Login

Email

Password

Remember Me

Search