Re: Pass parameters via url inside a php cron job
| From: | Daniel Brown | Date: | Thu, 25 Sep 2008 15:02:45 +0000 |
| Subject: | Re: Pass parameters via url inside a php cron job | ||
| References: | 1 2 3 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-280918@lists.php.net to get a copy of this message | ||
On Thu, Sep 25, 2008 at 6:34 AM, Merlin Morgenstern
<merlin_x@fastmail.fm> wrote:
> Hello Jochem,
>
> thank you this has solved my problem:
> bla.php 2
> $tf = $argv[1];
Conversely, on a *NIX system, if you want to grab it via the web -
locally or from a remote server - you can do this:
* * * * * /bin/env GET
"http://www.example.com/index.html?example=given"
>> /dev/null 2>&1
(^--- cron schedule) (^--- your URL)
--
</Daniel P. Brown>
More full-root dedicated server packages:
Intel 2.4GHz/60GB/512MB/2TB $49.99/mo.
Intel 3.06GHz/80GB/1GB/2TB $59.99/mo.
Intel 2.4GHz/320/GB/1GB/3TB $74.99/mo.
Dedicated servers, VPS, and hosting from $2.50/mo.