note 101372 modified in function.pg-send-query by danbrown

From: Date: Mon, 13 Dec 2010 16:38:38 +0000
Subject: note 101372 modified in function.pg-send-query by danbrown
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-174882@lists.php.net to get a copy of this message
pg_send_query would not stop your script from executing but it would stop the script from exiting. Example: <?php $con = pg_connect('dbname=payroll'); pg_send_query('SELECT process_payroll()'); // Where process_payroll is a super long process ?> You would still need to wait for the query to finish before the any display would be sent to the browser. And surprisingly, unlike pg_query this script would not generate the Maximum execution time error. --was-- pg_send_query would not stop your script from executing but it would stop the script from exiting. Example: $con = pg_connect('dbname=payroll'); pg_send_query('SELECT process_payroll()'); // Where process_payroll is a super long process You would still need to wait for the query to finish before the any display would be sent to the browser. And surprisingly, unlike pg_query this script would not generate the Maximum execution time error. http://php.net/manual/en/function.pg-send-query.php

« previous php.notes (#174882) next »