Example 1.
?php $conn = pg_pconnect ("dbname=publisher"); if (!$conn) {echo "Une erreur est survenue.\n"; exit;} / / ecoute le message 'author_updated 'des autres processus pq_query($conn, 'LISTEN author_updated ;'); $notify = pg_get_notify($conn); if (!$notify) print("Aucun message\n"); else print_r($notify);?