What's the difference between the SEM and SHMOP functions in PHP? Are SEM functions exclusive for System V and SHMOP for UNIX?
2 Answers
SHMOP functions can be used in *NIX and Windows environments. Semaphore is not available in Windows at all however, which also includes ftok().
If you check out the PHP documentation user comments for SHMOP, there are workarounds for getting a key to use with SHMOP in Windows without ftok().