![]() |
Execute PHP script every X seconds?
Hello everyone.
I have developed a rather complex script to query a gameserver which also makes checks on players within. However the issue I am having difficulty with is running the PHP script every X seconds. I know of a simple way which works but doesnt seem too accurate when executing it for me. Code:
$overall_time = 0; Any help appreciated. Matt |
PHP Code:
|
Hi Dismounted. Out of interest is this best and most reliable way to run a script every X seconds?
Thanks for your assistance. |
Most reliable? Maybe not. The PHP script will still suffer from timeouts as defined in php.ini. The best way I can think of right now is to create a shell script that will sleep and run your PHP script (with a cron kicking it).
|
Any idea then how to do it with Shell?
Your help is appreciated |
All times are GMT. The time now is 04:45 PM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|