The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
||||
|
||||
Continuously looping a single script
Hi guys,
I am attempting to get a PHP script which checks a gameserver, to run continously using CRON as a kick. I have a system in place on UNIX allowing my script to not overlap and only run once at a time. Anyone got any suggestions with the best way to loop a script continuously or run it every 3 seconds? Note, I use functions in this script which usually results in the 'cannot redeclare function' error if I try the usual methods of running scripts more often than CRONs 1 min. Anyway round this than expanding the functions into regular code? Thanks in advance Matt |
#2
|
||||
|
||||
You could maybe achieve this using sleep() and normal loops.
|
#3
|
||||
|
||||
Any example as I am really having difficulties with this continuous loop thing?
Thanks for the reply Dismounted. |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|