PHP Semaphore Check and Release

By: | On:

  PHP  

Gets a semaphore and attempts to acquire to prevent code from running more than one time.

  • Aborts if the semaphore cannot be retrieved.
  • Aborts if the semaphore in use.
  • The key must be an integer.

On Github: https://github.com/campsoftware/semaphoreCheck-php