|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2002-04-06 19:12 UTC] yohgaki@php.net
[2002-04-07 06:24 UTC] ruivilela at hotmail dot com
[2002-04-23 01:40 UTC] yohgaki@php.net
[2002-04-23 01:48 UTC] yohgaki@php.net
[2002-07-07 19:57 UTC] sniper@php.net
|
|||||||||||||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Mon Oct 27 13:00:01 2025 UTC |
This script give the same error on both of my web servers (iis,apache) Script: <?php $db_handle = pg_connect("dbname=ensite2001 hostaddr=100.100.0.2 user=rvilela password=xxxxxx"); if ($db_handle) echo "Connection attempt succeeded.<br>\n"; else echo "Connection attempt failed.<br>\n"; echo "<h1>Connection Information</h1>"; echo "Database name: " . pg_dbname($db_handle) . "<br>\n"; echo "Hostname: " . pg_host($db_handle) . "<br>\n"; //using this function crash php.exe echo "Options: " . pg_options($db_handle) . "<br>\n"; echo "Port: " . pg_port($db_handle) . "<br>\n"; echo "TTY name: " . pg_tty($db_handle) . "<br>\n"; pg_freeresult($result); pg_close($db_handle); ?>