RE: [PHP] automatic job execution

From: Date: Thu, 25 Jul 2002 13:37:06 +0000
Subject: RE: [PHP] automatic job execution
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-109492@lists.php.net to get a copy of this message
I looked at some old posts and I found #!/usr/local/bin/php -q should be included at the top of the script but I don't think I have permission on the system I'm on. -----Original Message----- From: Scott [mailto:scott@scottah.com] Sent: Thursday, July 25, 2002 6:25 AM To: Paul O'Neil Cc: php-general@lists.php.net Subject: Re: [PHP] automatic job execution On second thought, do you just want the script to run and sleep or actually schedule it as a job? You could just use sleep(). set_time_out(0); while ($i = 0){ your code sleep(60); } We use this at my company for a file parsing program, it runs, sleeps 15 minutes and repeats. -Scott On Thu, 25 Jul 2002, Paul O'Neil wrote: > I have a php script I would like run like a cron job every so many minutes. > How is this done? > > > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

« previous php.general (#109492) next »