I presume when php executes a script that somewhere in its system it assigns a thread id to that script instance.
My thought was to check if a script (which takes a long time) is running OK.
So when the script runs it first writes its own processid to a text file. This process can take as long as several hours by the way.
In theory, another script can go to the text file, read the id of the script which is running a certain operation (importing data in this case), and see if that process exists on the computer, right? In that case I can see if the process is TRULY running very easily.
If this is actually possible I'll be impressed with php's organization.
Sam