Microsoft Word - Core PHP Programming Using PHP to Build Dynamic Web Sites
integer sem_get(integer key, integer maximum, integer permission) Use sem_get to receive an identifier for a semaphore. If the s ...
necessary, in which case the optional size and permissions arguments will be used if present. The size of the memory segment def ...
{ //attach to shared memory //make the memory 1K in size $mem = shm_attach(SHM_COREPHP, 1024); //attempt to get message variable ...
The shm_put_var function sets the value for a variable in a shared memory segment. If the variable does not exist, it will be cr ...
shm_remove($mem); //release semaphore sem_release($sem); } else { //we failed to acquire the semaphore print("Failed to acquire ...
snmp_set_quick_print(boolean on) The snmp_set_quick_print function sets the value of the UCD SNMP library's quick_print setting. ...
//set it to something else snmpset("ucd-snmp.ucdavis.edu", "demopublic", "ucdDemoPublicString.0", "s", "Core PHP Programming"); ...
reset($snmp); while(list($key, $value) = each($snmp)) { print($value. "\n"); } ?> array snmpwalkoid(string host, string commu ...
appropriate type. If the packet contains multiple values in a structure, an associative array will be returned. <? //simulate ...
<? //create test data $Name = "Leon Atkinson"; $Email = "
[email protected]
"; $Residence = "Martinez"; $Info = array("E ...
$Name = "Leon Atkinson"; $Email = "
[email protected]
"; $Residence = "Martinez"; $Info = array("Email", "Residence"); //pr ...
Stig Bakken added the XML extension to PHP. string utf8_decode(string data) The utf8_decode function takes UTF-8 text and return ...
The xml_get_current_column_number function returns the column number in the source file where the parser last read data. This fu ...
...
Table 14.13. XML Error Constants XML_ERROR_ASYNC_ENTITY XML_ERROR_ATTRIBUTE_EXTERNAL_ENTITY_REF XML_ERROR_BAD_CHAR_REF XML_ERROR ...
The xml_set_object function associates an object with a parser. You must pass the parser identifier and a reference to an object ...
} //destroy parser xml_parser_free($this->parser); } function cdataHandler($parser, $data) { print($data); } function startHa ...
} $p = new myParser; $p->parse("example.xml"); ?> xml_parser_set_option(integer parser, integer option, value data) Use xm ...
The start argument must name a function you've created that takes three arguments. The first function is the parser identifier. ...
boolean xml_set_unparsed_entity_decl_handler(integer parser, string function) This function specifies a handler for external ent ...
«
21
22
23
24
25
26
27
28
29
30
»
Free download pdf