The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
||||
|
||||
Only allowing a script to run once at a time...
Hi everyone,
I have a script that runs every 3 seconds kickstarted by CRON every minute. I want to however stop the script overlapping itself as it sometimes does, so in short, I would like to only allow it to run once per time. So I formulated a method without using MYSQL, a simple .txt file check as follows. The only issue is sometimes it forgets to remove the file so I end up with a script not running at all. In addition it places these files in the very root of the server not in the directory the script runs. Could this be something to do with it? PHP Code:
Thanks in advance. Matt |
#2
|
|||
|
|||
PHP Code:
|
#3
|
||||
|
||||
PHP Code:
|
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|