View previous topic :: View next topic |
Author |
Message |
PaulK -
Joined: 26 Apr 2006 Posts: 132 Location: London, UK
|
Posted: Sun Oct 08, 2006 9:50 pm Post subject: How do you make a script repeat? |
|
|
HI guys
Is there a way to make a script repeat indefinatley?
I have a script at the moment for my LED display, it checks the number of users online nad displays it, then is displays the most recent message from my website, and finally displays the time and date.
Once the cycle is comeplete I would like to loop and do it again.
Would I be better doing this through DOS or PHP and can you recommend the code I would use.
Thanks as always
Paul |
|
Back to top |
|
|
Mikor -
Joined: 21 Aug 2006 Posts: 144 Location: Hull, England
|
Posted: Sun Oct 08, 2006 10:25 pm Post subject: |
|
|
You want an infinate loop?
Code: | <?php
set_time_limit(0);
while(1 == 1){
//code here
ob_flush();
}
?> |
_________________ Yarrt.com - Free Arcade
RypNet.co.uk - Online Game
MSN: michael_walker_2004 <at> hotmail <dot> com |
|
Back to top |
|
|
PaulK -
Joined: 26 Apr 2006 Posts: 132 Location: London, UK
|
Posted: Sun Oct 08, 2006 10:35 pm Post subject: |
|
|
That did it!
Cheers Matey :) |
|
Back to top |
|
|
|