PHP mysqli poll() Funzione
Definizione e utilizzo
La funzione poll() / mysqli_poll() viene utilizzata per eseguire il polling delle connessioni.
Sintassi
Stile orientato agli oggetti:
$mysqli -> poll(read, error, reject, seconds, microseconds)
Stile procedurale:
mysqli_poll(read, error, reject, seconds, microseconds)
Valori dei parametri
Parameter | Description |
---|---|
read | Required. Specifies a list of connections to check for outstanding results that can be read |
error | Required. Specifies a list of connections on which an error occurred, like query failure or lost connection |
reject | Required. Specifies a list of connections rejected because no asynchronous query has been run on for which the function could poll results |
seconds | Required. Specifies the maximum number of seconds to wait |
microseconds | Optional. Specifies the maximum number of microseconds to wait. Default is 0 |
Dettagli tecnici
Valore di ritorno: | Il numero di connessioni pronte in caso di successo. FALSO in caso di fallimento |
---|---|
Versione PHP: | 5.3+ |
❮ Riferimento PHP MySQLi