Daniel

On Wed, Dec 1, 2010 at 1:28 AM, Daniel P. Brown
<daniel.br...@parasane.net>wrote:

> On Tue, Nov 30, 2010 at 16:51, Mohammad Taghi Khalifeh
> <khalifeh...@gmail.com> wrote:
> > it seems that the problem is in pg_connect().
>
>     Do you have PostgreSQL support compiled into PHP?
>
>    Command line:
>        php -i | egrep -i 'postgres|pgsql'
>
>    Web:
>        <?php phpinfo(); /* Check in a browser for 'pgsql' or 'postgres' */
> ?>
>

In Command line output, there was --with-pgsql=shared and
--with-pdo-pgsql=shared,
but phpinfo() did not load any library related to pgsql. so I figured out
that some libraries are not installed.
Installing php-pgsql package from fedora repos, problem solved.
Thank you so much for your help: it works for me very well. :)

Other thing that I want to know is that,
somewhere<http://us2.php.net/manual/en/pdo.installation.php>I read
that loading pdo drivers
as shared libraries are not recommended. whats wrong with that? and how can
I change that?

Mohammad

Reply via email to