I need to check whether or not an administrative script is already running on Apache, if not then it runs. Currently, I'm loading the server-status contents and checking against it but if I'm checking whether or not the current script is already running it will always return true because I'm running the script to check on itself. Does that make sense?
Basically in "script.php" is something like:
if($this_is_already_running) { exit; }
else { run it }
but it is currently running while it checks on itself so it will always return true.
Any help is greatly appreciated.