Sent: Saturday, June 05, 2004 10:49 PM
Subject: Re: [PHP] Re: shedule a php script
> Thomas Seifert wrote:
> > I would recommend the cronjob too but if you want to just keep the
script running, do a while-loop around your code, i.e.
> >
> > while(1) {
>
>
> - Original Message -
> From: "Ben Ramsey" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Saturday, June 05, 2004 10:07 PM
> Subject: [PHP] Re: shedule a php script
>
>
> > If you're on a Unix-like system, add the following at
Thomas Seifert wrote:
I would recommend the cronjob too but if you want to just keep the script running, do
a while-loop around your code, i.e.
while(1) {
... your code
sleep(120); // sleep 120 seconds
}
---
the require should be outside of the loop IMHO ;).
Or if you want to run the script fr
2004 10:07 PM
Subject: [PHP] Re: shedule a php script
If you're on a Unix-like system, add the following at the top of your
script:
#!/usr/local/bin/php
Of course, modify the path to the location of your php binary, since it
may not be in the same location. Then, make the file executable wit
I would recommend the cronjob too but if you want to just keep the script running, do
a while-loop around your code, i.e.
while(1) {
... your code
sleep(120); // sleep 120 seconds
}
---
the require should be outside of the loop IMHO ;).
thomas
On Sat, 5 Jun 2004 21:46:20 +0600 [EMAIL PRO
If you're on a Unix-like system, add the following at the top of your
script:
#!/usr/local/bin/php
Of course, modify the path to the location of your php binary, since it
may not be in the same location. Then, make the file executable with:
chmod +x filename.php
Then, create a cron job to run
6 matches
Mail list logo