Da traduttori professionisti, imprese, pagine web e archivi di traduzione disponibili gratuitamente al pubblico.
예 1. traversing all hashes
mhash_get_block_size
Ultimo aggiornamento 2011-10-24
Frequenza di utilizzo: 1
Qualità:
mhash_count() returns the highest available hash id. hashes are numbered from 0 to this hash id.
?php $nr = mhash_count(); for ($i = 0; $i = $nr; $i++) {echo sprintf ("the blocksize of %s is %d\n", mhash_get_hash_name ($i), mhash_get_block_size ($i));}?
Ultimo aggiornamento 2011-10-24
Frequenza di utilizzo: 1
Qualità:
Attenzione: contiene formattazione HTML nascosta
here is a list of hashes which are currently supported by mhash. if a hash is not listed here, but is listed by mhash as supported, you can safely assume that this documentation is outdated.
here is a list of hashes which are currently supported by mhash.
Ultimo aggiornamento 2011-10-24
Frequenza di utilizzo: 1
Qualità:
however, it's more than likely that these functions would prove to be useless for you when trying to implement a persistent module. typically, one would want to use the fact that the persistent resource list is really a hash table. for instance, in the mysql/msql modules, when there's a pconnect() call (persistent connect), the function builds a string out of the host/user/passwd that were passed to the function, and hashes the sql link with this string as a key. the next time someone calls a pconnect() with the same host/user/passwd, the same key would be generated, and the function would find the sql link in the persistent list.
one important thing to note: resources going into the persistent resource list must *not* be allocated with php' s memory manager, i.e., they should not be created with emalloc(), estrdup(), etc.
Ultimo aggiornamento 2011-10-24
Frequenza di utilizzo: 1
Qualità: