On 14 Feb, 08:10, Pawel_Iks <pawel.labed... @gmail.comwrote :
On 13 Lut, 22:46, "Rik Wasmus" <luiheidsgoe... @hotmail.comwro te:
>
On Wed, 13 Feb 2008 22:11:36 +0100, Pawel_Iks <pawel.labed... @gmail.com>
wrote:
>
How to write script which will be run automaticaly on server at some
dates (for example on each monday at 5 pm)? Is it possible to do it?
>
Just use a cron job, or if on Windows, schedule a task.
--
Rik Wasmus
>
but, I have my webpage on server and I don't know how to use this what
you advise me from php code, could you give me any example?
If you don't have access to a CLI version of PHP then you'll need to
trigger the script via the webserver.
You can invoke a web page remotely from a scheduled job using (for
example) wget which is available for Unix/Linux/MSWindows. So even if
you don't have access to schedule a job on the server you could set up
the job on any internet connected machine to trigger the request.
This is an approach I have taken before.
In my situation it was a script that would delete old database entries
past a certain date, and since those updates are only needed prior to
being viewed by a visitor, the first visitor for that day would trigger
the script.
Its not pretty, but its effective.
>>On Wed, 13 Feb 2008 22:11:36 +0100, Pawel_Iks <pawel.labed... @gmail.com>
>>wrote:
>>>How to write script which will be run automaticaly on server at some
>>>dates (for example on each monday at 5 pm)? Is it possible to do it?
>>Just use a cron job, or if on Windows, schedule a task.
>>--
>>Rik Wasmus
>but, I have my webpage on server and I don't know how to use this what
>you advise me from php code, could you give me any example?
>
If you don't have access to a CLI version of PHP then you'll need to
trigger the script via the webserver.
>
You can invoke a web page remotely from a scheduled job using (for
example) wget which is available for Unix/Linux/MSWindows. So even if
you don't have access to schedule a job on the server you could set up
the job on any internet connected machine to trigger the request.
>
RTFM for how to set up a scheduled job.
>
C.
Comment