Re: Time

From: Date: Sat, 31 Mar 2001 03:31:00 +0000
Subject: Re: Time
References: 1  Groups: php.gtk php.windows 
Request: Send a blank email to php-windows+get-6400@lists.php.net to get a copy of this message
Umm the obvious reply would be to go to download.com and browse to see if they have a shareware version of a cron like application, i am sure they do... i remember seeing some of those. Otherwise, code a simple php or c or delphi or visual basic app that only does while (1) sleep(60*60); exec('application') end Can't be that hard to write right? :) or even if you wanted it -on- every hour and not every hour, just do a if ( frac (time() / (60*60) ) == 0) { exec('application') } (ie if the dividable time / 'seconds in hour' has no fraction (behind the . or , depending on locality, its on the hour) I realy hope this wont become a windows support mailing list though, thats kinda outside of the scope of php-gtk? :) -- Chris Josh Seward wrote: > Hello, > > Is there a way to have php run a script at a certain time? What I really need is something like > cron on unix systems. I would use windows scheduler but it only goes by days. I ned to run this once > every hour. > > P.S. To let everyone how helped me before. I can now send commands to an outside program I am > running w/ the fsockopen command. This is after I open the prog. with popen. Thank you all for your > help., especially Steph and Micheal. Your efffort and advice is much appriciated. If your ever in > Athens Ohio the first round is on me :-)

« previous php.windows (#6400) next »