Skip site navigation (1) Skip section navigation (2)

Re: php and postgresql on windows

From: Patrick White <ptothew(at)gmail(dot)com>
To: pgsql-php(at)postgresql(dot)org
Subject: Re: php and postgresql on windows
Date: 2006-02-03 08:41:33
Message-ID: (view raw, whole thread or download thread mbox)
Lists: pgsql-php
I had some similar problems getting the postgre library to become
available to PHP.  The issue I was having was that I didn't realise
the order of which the server will look for the php.ini file (I
thought it was simply looking in the PATH directories), such as the
list I will provide for future reference:

    1.PHPIniDir directive (Apache 2 module only)
    3. The PHPRC environment variable
    4. Directory of PHP (for CLI), or the web server's directory (for
      SAPI modules)
    5. Windows directory (C:\windows or C:\winnt)

My problem was that Apache was set to look in a directory that
contained a completly default php.ini file.

On 2/3/06, Przemek Kowalczyk <przemek(dot)ca(at)gmail(dot)com> wrote:
> On 03/02/06, Randy Moller <zoomerz(at)comcast(dot)net> wrote:
> > Actually, the php_pgsql.dll file does NOT natively install on the windows
> > CGI distribution. If you installed using the "installer", then download the
> > zip distribution and extract the dll from the ext folder.
> >
> > Next, if you haven't already done so, uncomment the extension line on
> > php.ini, and you should be good to go.
> >
> > If you installed originally from the zip/tar/rar file, then it should be
> > there, yes.
> >
> > Hope this helps.
> It does not work.  Does it matter if I install it as cgi binary or
> apache module? I tried both.  The php.ini files get read because I can
> see the extension_dir changing for example.
> I tried uncommenting the mysql dll in php.ini for fun and and I don't
> see anything about mysql in phpinfo.php
> Could this be because my drive is F instead of c? No that's stupid eh?
> ---------------------------(end of broadcast)---------------------------
> TIP 9: In versions below 8.0, the planner will ignore your desire to
>        choose an index scan if your joining column's datatypes do not
>        match

In response to

pgsql-php by date

Next:From: operationsengineer1Date: 2006-02-03 18:18:36
Subject: Re: php and postgresql on windows
Previous:From: Przemek KowalczykDate: 2006-02-03 07:21:42
Subject: Re: php and postgresql on windows

Privacy Policy | About PostgreSQL
Copyright © 1996-2017 The PostgreSQL Global Development Group