geoip_asnum_by_name

(PECL geoip >= 1.1.0) Get the Autonomous System Numbers (ASN) string geoip_asnum_by_name ( string $hostname ) The geoip_asnum_by_name() function will return the Autonomous System Numbers (ASN) associated with an IP address. Parameters: hostname The hostname or IP address. Returns: Returns the ASN on success, or FALSE if the address cannot be f

SyncReaderWriter::writeunlock

(PECL sync >= 1.0.0) Releases a write lock public bool SyncReaderWriter::writeunlock ( void ) Releases a write lock on a SyncReaderWriter object. Returns: A boolean of TRUE if the unlock operation was successful, FALSE otherwise. Examples: SyncReaderWriter::writeunlock() example <?php $readwrite = new SyncReaderWrit

SyncReaderWriter::writelock

(PECL sync >= 1.0.0) Waits for an exclusive write lock public bool SyncReaderWriter::writelock ([ integer $wait ] ) Obtains an exclusive write lock on a SyncReaderWriter object. Parameters: wait The number of milliseconds to wait for a lock. A value of -1 is infinite. Returns: A boolean of TRUE if the lock was obtained, FALSE otherwise.

SyncReaderWriter::readunlock

(PECL sync >= 1.0.0) Releases a read lock public bool SyncReaderWriter::readunlock ( void ) Releases a read lock on a SyncReaderWriter object. Returns: A boolean of TRUE if the unlock operation was successful, FALSE otherwise. Examples: SyncReaderWriter::readunlock() example <?php $readwrite = new SyncReaderWriter("

SyncReaderWriter::readlock

(PECL sync >= 1.0.0) Waits for a read lock public bool SyncReaderWriter::readlock ([ integer $wait ] ) Obtains a read lock on a SyncReaderWriter object. Parameters: wait The number of milliseconds to wait for a lock. A value of -1 is infinite. Returns: A boolean of TRUE if the lock was obtained, FALSE otherwise.

SyncReaderWriter::__construct

(PECL sync >= 1.0.0) Constructs a new SyncReaderWriter object public SyncReaderWriter::__construct ([ string $name [, bool $autounlock ]] ) Constructs a named or unnamed reader-writer object. Parameters: name The name of the reader-writer if this is a named reader-writer object. Note: If the name already exists, it must be able to be opened by the current user that

SyncEvent::wait

(PECL sync >= 1.0.0) Waits for the event to be fired/set public bool SyncEvent::wait ([ integer $wait ] ) Waits for the SyncEvent object to be fired. Parameters: wait The number of milliseconds to wait for the event to be fired. A value of -1 is infinite. Returns: A boolean of TRUE if the event was fired, FALSE otherwise.

SyncEvent::reset

(PECL sync >= 1.0.0) Resets a manual event public bool SyncEvent::reset ( void ) Resets a SyncEvent object that has been fired/set. Only valid for manual event objects. Returns: A boolean value of TRUE if the object was successfully reset, FALSE otherwise. Examples: SyncEvent::reset() example <?php // In a web appli

SyncEvent::fire

(PECL sync >= 1.0.0) Fires/sets the event public bool SyncEvent::fire ( void ) Fires/sets a SyncEvent object. Lets multiple threads through that are waiting if the event object was created with a manual value of TRUE. Returns: A boolean of TRUE if the event was fired, FALSE otherwise. Examples: SyncEvent::fire() example

SyncEvent::__construct

(PECL sync >= 1.0.0) Constructs a new SyncEvent object public SyncEvent::__construct ([ string $name [, bool $manual ]] ) Constructs a named or unnamed event object. Parameters: name The name of the event if this is a named event object. Note: If the name already exists, it must be able to be opened by the current user that the process is running as or an exception