From: Patrick White <ptothew@gmail.com>
To: pgsql-php@postgresql.org
Subject: Re: php and postgresql on windows
Date: Fri, 3 Feb 2006 03:41:33 -0500
Message-ID: <ace2c0420602030041n5b94fafal122b4c0831e496e6@mail.gmail.com> (raw)
In-Reply-To: <4cb3dbb70602022321o4adbcd9ek@mail.gmail.com>
References: <4cb3dbb70602022103l57309b98l@mail.gmail.com>
<20060203051943.038479DCBEE@postgresql.org>
<4cb3dbb70602022321o4adbcd9ek@mail.gmail.com>
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)
2.HKEY_LOCAL_MACHINE\SOFTWARE\PHP\IniFilePath
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.ca@gmail.com> wrote:
> On 03/02/06, Randy Moller <zoomerz@comcast.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
>
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: ptothew@gmail.com
Subject: Re: php and postgresql on windows
In-Reply-To: <ace2c0420602030041n5b94fafal122b4c0831e496e6@mail.gmail.com>
References: <4cb3dbb70602022103l57309b98l@mail.gmail.com> <20060203051943.038479DCBEE@postgresql.org> <4cb3dbb70602022321o4adbcd9ek@mail.gmail.com> <ace2c0420602030041n5b94fafal122b4c0831e496e6@mail.gmail.com>
* 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