in php can you create a class that has a static variable?
for example, I have two scripts running, one script is relying on the other script to finish writing to a file. Instead of running a while loop with file_exists() (which seems to be very expensive), I'd rather have a class with a static variable that I can use as the lock key.
any idea?
Thanks,
Vala