Re: Running a PHP script automatically? FORGOT the link
| From: | David McInnis | Date: | Sun, 22 Sep 2002 07:18:17 +0000 |
| Subject: | Re: Running a PHP script automatically? FORGOT the link | ||
| References: | 1 2 3 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-117156@lists.php.net to get a copy of this message | ||
Sorry, I forgot the link.
http://phpbuilder.com/columns/darrell20000319.php3
David
----- Original Message -----
From: "David McInnis" <david@dataovation.com>
To: "Tom Rogers" <trogers@kwikin.com>; "Joseph Szobody"
<jszobody@excite.com>
Cc: <php-general@lists.php.net>
Sent: Sunday, September 22, 2002 12:16 AM
Subject: Re: [PHP] Running a PHP script automatically?
> This is what your are looking for. It works great.
>
> I think this article assumes Linux which is what I use anyway. I guess
that
> if you were to use windows you could schedule the task but you would need
to
> call it using
>
> c:\pathTOphp\php.exe c:\pathTOscript\script.php
>
> Use Linux!
>
> David
>
> ----- Original Message -----
> From: "Tom Rogers" <trogers@kwikin.com>
> To: "Joseph Szobody" <jszobody@excite.com>
> Cc: <php-general@lists.php.net>
> Sent: Sunday, September 22, 2002 12:02 AM
> Subject: Re: [PHP] Running a PHP script automatically?
>
>
> > Hi,
> >
> > Sunday, September 22, 2002, 2:44:54 PM, you wrote:
> > JS> Folks, I have a PHP script that needs to be executed automatically
> every 15 minutes. I have the option of doing this on a RedHat linux box,
or
> on Windows 2000 Server.
> >
> > JS> How would I do this (on either platform) and which would be easier?
> >
> > JS> I believe somehow I could create a cron job on linux, but I'm a bit
> confused how that would work. Would I just call the php script using Lynx?
> If so, does the Lynx process die when the php script
> > JS> is finished? Will I have dozens of Lynx processes still running at
the
> end of the day?
> >
> > JS> In Windows, I believe I could use the task scheduler, or something
> like that. But again, how exactly would I call the script? I certainly
don't
> want a new browser window to open every 15 minutes,
> > JS> especially if it doesn't close again.
> >
> > JS> Any insight? Thanks!
> >
> > JS> Joseph
> >
> >
> > JS> --
> > JS> PHP General Mailing List (http://www.php.net/)
> > JS> To unsubscribe, visit: http://www.php.net/unsub.php
> >
> >
> > I do this in cron
> >
> > 0,15,30,45 * * * * /usr/bin/lynx -dump
> > http://domain.com/clkdown.php 1>
> /dev/null 2> /dev/null
> >
> > --
> > regards,
> > Tom
> >
> >
> > --
> > PHP General Mailing List (http://www.php.net/)
> > To unsubscribe, visit: http://www.php.net/unsub.php
> >
> >
> >
>
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>
>