I'm trying to set up a "server" script in PHP, which should run for a limited amount of time in the background. But multiple instances of this script may run at the same time. Unfortunately fsockopen() doesn't let me use the same port at the same time by two different scripts, so others fail in error :(
Is there any way around this?