From: Patrick White <ptothew@gmail.com>
To: pgsql-php@postgresql.org
Subject: Fwd: Having tough time getting php working for postgresql..
Date: Wed, 11 Jan 2006 13:08:27 -0500
Message-ID: <ace2c0420601111008u5d1d317ep93ece8d8aa85dee7@mail.gmail.com> (raw)
In-Reply-To: <200601111900.25840.vygen@gmx.de>
References: <DBC55FC363C9274CB71DB7600AB0F05003EAB93B@klondike.exch.ad.byu.edu>
<ace2c0420601110935w1c081496l85e5e599e58ae9e1@mail.gmail.com>
<200601111900.25840.vygen@gmx.de>
Thank you for the quick reply. I was actually able to get it up and
running. It is always as soon as you hit the send button when the
light bulb goes off. 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.
Thanks again, and I apologize for the premature post.
Patrick
---------- Forwarded message ----------
From: Janning Vygen <vygen@gmx.de>
Date: Jan 11, 2006 1:00 PM
Subject: Re: [PHP] Having tough time getting php working for postgresql..
To: pgsql-php@postgresql.org
Cc: Patrick White <ptothew@gmail.com>
Am Mittwoch, 11. Januar 2006 18:35 schrieb Patrick White:
> Hello,
>
> I was having trouble with setting up php-pgsql, but I think I have it
> up and running. Before I attempt to move forward with attempting to
> code without knowing if the environment is setup correctly, does
> anybody know what exactly I am looking for in the phpinfo() tables. I
> did a find for pgsql, postgre, etc. and didn't find anything.
you should find "pgsql" (look at the configuration parameters in
http://www.php.net/manual/en/ref.pgsql.php ; they should be listed)
> I am running Windows XP Pro, Apache 2, PHP 5.1.1, PostgreSQL 8.0.
Consult http://www.php.net/manual/en/ref.pgsql.php
Maybe you have to add the libary in your php.ini file
kind regards
janning
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: Fwd: Having tough time getting php working for postgresql..
In-Reply-To: <ace2c0420601111008u5d1d317ep93ece8d8aa85dee7@mail.gmail.com>
References: <DBC55FC363C9274CB71DB7600AB0F05003EAB93B@klondike.exch.ad.byu.edu> <ace2c0420601110935w1c081496l85e5e599e58ae9e1@mail.gmail.com> <200601111900.25840.vygen@gmx.de> <ace2c0420601111008u5d1d317ep93ece8d8aa85dee7@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