From: Frank Bax <fbax@sympatico.ca>
To: pgsql-php@postgresql.org
Subject: Re: PHP/postgreSQL
Date: Thu, 09 Feb 2006 16:08:21 -0500
Message-ID: <5.2.1.1.0.20060209155446.044d0c00@pop6.sympatico.ca> (raw)
In-Reply-To: <20060204171435.7lfphylyooggs08c@webmail.weaktight.com>
At 05:14 PM 2/4/06, vince@weaktight.com wrote:
>I'm running PHP/mySQL via a web hosting service. I require my PHP scripts to
>access an external PostgreSQL database.
>
>I have the PostgreSQL server setup to accept connections from anyone:
>I've tested this connection via pgAdminIII and I'm able to connect using this
>IP, but when I try to connect via php from the hosted webpage...
>
>But I'm foiled by:
>
>Warning: pg_connect(): Unable to connect to PostgreSQL server: could not
>connect
>to server: Operation timed out Is the server running on host
>"24.85.82.xxx" and
>accepting TCP/IP connections on port 5432? in
>/usr/local/psa/home/vhosts/weaktight.com/httpdocs/mytest.php on line 13
>
>Any thoughts or suggestions would be greatly appreciated. I'm not very
>experienced with any of this stuff.
Your webhosting company must be blocking outgoing requests on port 5432. I
was able to connect to your server with your code - no problem.
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-php@postgresql.org
Cc: fbax@sympatico.ca
Subject: Re: PHP/postgreSQL
In-Reply-To: <5.2.1.1.0.20060209155446.044d0c00@pop6.sympatico.ca>
References: <20060204171435.7lfphylyooggs08c@webmail.weaktight.com> <5.2.1.1.0.20060209155446.044d0c00@pop6.sympatico.ca>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox