php-windows Digest 15 Apr 2005 14:35:31 -0000 Issue 2633

Topics (messages 25842 through 25842):

Problem with pg_trace
        25842 by: Gene.Brumm.thomson.com

Administrivia:

To subscribe to the digest, e-mail:
        [EMAIL PROTECTED]

To unsubscribe from the digest, e-mail:
        [EMAIL PROTECTED]

To post to the list, e-mail:
        [email protected]


----------------------------------------------------------------------
--- Begin Message ---
I'm not sure if this the place to ask for help, but I have tried the
FAQ, Knowledge Base, etc. to no avail. I am using the Windows version
5.0.3 of PHP running on an XP workstation. I can't get the pg_trace
function to work properly. Here is a code snip:
 
$res = pg_trace("C:/PostgreSQLDevHndbk/tmp/trace-log.log", w, $conn);
 
$sql = "SELECT * FROM customer";
$result = pg_exec($conn, $sql);
$rows = pg_numrows($result);
 
for ($i = 0; $i < $rows; $i++)
{
   $myarray = pg_fetch_row($result, $i);
   echo ("Array: $myarray[2] - $myarray[3]<br>\n");
}
 
$res = pg_untrace($conn);
 
The trace-log.log file is generated but is empty. What am I doing wrong?

--- End Message ---

Reply via email to