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" <[EMAIL PROTECTED]> To: "Joseph Szobody" <[EMAIL PROTECTED]> Cc: <[EMAIL PROTECTED]> 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