shm_remove($mem);
//release semaphore
sem_release($sem);
}
else
{
//we failed to acquire the semaphore
print("Failed to acquire semaphore!
\n");
}
?>
boolean shm_remove_var(integer identifier, integer key)
The shm_remove_var function frees the memory associated with a variable within a
shared memory segment.
SNMP
SNMP, the Simple Network Management Protocol, is a protocol for Internet network
management. It was first described in RFC 1089. One place to start learning about SNMP
is SNMP Research at < http://www.snmp.com/>. To use these functions under
UNIX, you must have the UCD SNMP libraries. You can find them at http://ucd-
snmp.ucdavis.edu/. Documentation at this site is more specific to the library PHP
uses. I've attempted to follow their examples by translating them into equivalent PHP
code.
At the time of this writing, no SNMP extension for Windows was available for PHP4.
Presumably, the name would be php_snmp.dll. PHP3's library was called
php3_snmp.dll. It did not use the UCD SNMP libraries and was available under
Windows NT only. You can activate an extension with the dl function or with the
extension directive in php.ini.
Mike Jackson, Rasmus Lerdorf, and Steven Lawrance have contributed to the SNMP
extension.
boolean snmp_get_quick_print()
The snmp_get_quick_print function returns the status of the UCD SNMP library's
quick_print setting. Consequently, this function is unavailable to Windows users.
The quick_print setting controls how verbose object values are. By default,
quick_print is FALSE, and values include types and other information. The UCD
SNMP manual provides more information.