PHP
downloads | documentation | faq | getting help | mailing lists | reporting bugs | php.net sites | links | conferences | my php.net

search for in the

pg_host> <pg_get_pid
Last updated: Fri, 18 Jul 2008

view this page in

pg_get_result

(PHP 4 >= 4.2.0, PHP 5)

pg_get_result — Recupera i risultati di una query asincrona

Descrizione

resource pg_get_result ([ resource $connessione ] )

pg_get_result() estrae la risorsa risultato dalle query asincrone eseguite da pg_send_query(). pg_send_query() può inviare query multiple al server PostgreSQL server e pg_get_result() è utilizzat per recuperare i risultati uno ad uno. Restituisce la risorsa risultato. Se non ci sono più risultati, restituisce FALSE.



add a note add a note User Contributed Notes
pg_get_result
william at 25thandClement dot com
27-Jan-2005 03:03
There is no way to poll/wait for a notification to come in. You either have to enter a busy loop or sleep. Both options are horrible. It would be nice for PHP to provide access to PQsocket so one could select() on the socket connection. This is how it's done from C or Perl.

pg_host> <pg_get_pid
Last updated: Fri, 18 Jul 2008
 
 
show source | credits | stats | sitemap | contact | advertising | mirror sites