X-Original-To: pgsql-php-postgresql.org@localhost.postgresql.org Received: from localhost (neptune.hub.org [200.46.204.2]) by svr1.postgresql.org (Postfix) with ESMTP id 30AA1D1B48D for ; Mon, 12 Jan 2004 22:46:37 +0000 (GMT) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (neptune.hub.org [200.46.204.2]) (amavisd-new, port 10024) with ESMTP id 88146-02 for ; Mon, 12 Jan 2004 18:46:07 -0400 (AST) Received: from web80808.mail.yahoo.com (web80808.mail.yahoo.com [66.163.170.103]) by svr1.postgresql.org (Postfix) with SMTP id D0133D1B432 for ; Mon, 12 Jan 2004 18:46:04 -0400 (AST) Message-ID: <20040112224607.26249.qmail@web80808.mail.yahoo.com> Received: from [216.184.103.92] by web80808.mail.yahoo.com via HTTP; Mon, 12 Jan 2004 14:46:07 PST Date: Mon, 12 Jan 2004 14:46:07 -0800 (PST) From: =?iso-8859-1?q?Douglas=20Douglas?= Subject: pg_connect socket creation error (0x0000273F) To: pgsql-php@postgresql.org MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Virus-Scanned: by amavisd-new at postgresql.org X-Spam-Status: No, hits=2.3 tagged_above=0.0 required=5.0 tests=BAYES_20, FROM_ENDS_IN_NUMS, RCVD_IN_OPM X-Spam-Level: ** X-Archive-Number: 200401/9 X-Sequence-Number: 2525 Hello. I've been fighting with this all day, trying to fix it but I couldn't. So here I am. I have Cygwin installed in a Win XP machine. PostgreSQL is running there. Apache and PHP are installed in Windows in the same computer. PostgreSQL is properly configured (even psql and pgAdmin III work). Since I've heard that sockets are more efficient that connecting to localhost, I decided to uncomment the lines: tcpip_socket = true port = 5432 in the postgresql.conf file. But when I removed the host parameter from the connection string: pg_connect('dbname=mydb user=myuser password=mypass') I got this message: Warning: pg_connect(): Unable to connect to PostgreSQL server: could not create socket: An address incompatible with the requested protocol was used. (0x0000273F) . in c:\htdocs\testsockets.php on line 2 What does this line "An address incompatible with the requested protocol was used." means?!? I've looked similar errors in this list and google but I couldn't find an answer. Some people wrote that could be a problem in the pg_hba.file. I tried there too, but didn't work: host all all 127.0.0.1 255.255.255.255 trust I would appreciate any help. Thanks. Regards, Douglas. __________________________________ Do you Yahoo!? New Yahoo! Photos - easier uploading and sharing. http://photos.yahoo.com/