Re: Running a certain PHP function at specified intervals!
| From: | Rasmus Lerdorf | Date: | Fri, 13 Oct 2000 06:24:58 +0000 |
| Subject: | Re: Running a certain PHP function at specified intervals! | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-19950@lists.php.net to get a copy of this message | ||
On Linux the way to do it is to use the standalone command-line version of
PHP and use a cron job. Login to any UNIX box and type: man cron
to learn more. On Windows you'd need to find some sort of cron-like piece
of software to do the same thing.
-Rasmus
On Fri, 13 Oct 2000, Ramender Kishore wrote:
> I had posted this question some time back fellas ... please let me know about the same. I
> didn't get any kind of reply for this and the necessity is rather dire! Please let me know
> about any kind of solutions for the same.
>
> Dear All,
>
> How can I make a certain php function run at SPECIFIED INTERVALS on Windows 95 / 98 / NT
> machines or maybe on Linux / UNIX as well? It's something like, running a daemon or a service
> but what language should I use to connect to PHP function and call it at the specified intervals?
> Doesn't the web-server (APACHE) run like a daemon / service itself? So then, is there a certain
> configuration setting in the config. file to specify what function we want to be run at the given
> intervals? Basically, I want a PHP function to be launched at given interval without the user's
> (admin's) intervention, that would perform the required checks in the database and update the
> entries, corresponding to the found ones.
>
> Please let me know about the small piece of code as well that can help me understand it better
> ... if possible!
>
> Thanx
>
> -Romi
>