php is a command line program, so yes, it has to be run in a command line window, or through some kinda service (webserver). using VB you can hide the command window, but that's not always an option, and with automated tasks you can minimize it... but the command window is still there...
the program would still be done in php, but php has to be called somehow, and this would be easiest done through a command line window. a batch file would be better suited to the whole thing, but this would still need to be run from a command window. hence, why it is running php from the command line. i would shy away very much from running php permanently in a sleep loop, i'd imagine the resource usage would be fairly big, and as said before, bad programming could easily kill your computer... this is something easily achieved on *nix through crontabs, but windows solution, the automated task, is a fair solution too. but i may be wrong, i'm sure there's a more fluid way of doing this??? skate - fatcuban.com ----- Original Message ----- From: "Svensson, B.A.T. (HKG)" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Tuesday, March 25, 2003 1:52 PM Subject: RE: [PHP-WIN] Re: php as exe in windows > What about the added requirement: "I want to do this in php."? > > And I don't as obviously as you see the need this to run > inside a window? Is this a kind of restriction on php, or? > > //Anders - very ignorant about php > > > -----Original Message----- > > From: Mike Brum [mailto:[EMAIL PROTECTED] > > Sent: Tuesday, March 25, 2003 2:21 PM > > To: Svensson, B.A.T. (HKG); [EMAIL PROTECTED] > > Subject: RE: [PHP-WIN] Re: php as exe in windows > > > > > > There's a few problems with that - Let's say someone closes the window it's > > running in - then it's gone. Or let's say there's an error and it haults or > > Windows just messes up (Windows - mess up? - never!). > > > > With the Scheduled Task option, you can add limits on how long it's going to > > run and other options. It's just a lot more stable. > > > > Not to mention that if you poorly write the PHP script - it will consume A > > LOT of memory! > > > > -Mike > > > > -----Original Message----- > > From: Svensson, B.A.T. (HKG) [mailto:[EMAIL PROTECTED] > > Sent: Tuesday, March 25, 2003 8:11 AM > > To: [EMAIL PROTECTED] > > Subject: RE: [PHP-WIN] Re: php as exe in windows > > > > > > > > I want to create an application that I can run on my web-server every five > > > > minutes. The application should look in my ftp-catalogue and move incomming > > > > files to other directories. I want to do this in php. Is it possible - and > > > > in that case - how? > > > > Why not simply loop forever and execute your task and sleep for 5 minutes > > inside the loop fore each iteration? Can't be that hard to write such a script. > > -- > PHP Windows Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php > > > -- PHP Windows Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php