Fwd: Having tough time getting php working for postgresql..

Поиск
Список
Период
Сортировка
От Patrick White
Тема Fwd: Having tough time getting php working for postgresql..
Дата
Msg-id ace2c0420601111008u5d1d317ep93ece8d8aa85dee7@mail.gmail.com
обсуждение исходный текст
Ответ на Re: Having tough time getting php working for postgresql..  (Janning Vygen <vygen@gmx.de>)
Список pgsql-php
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

В списке pgsql-php по дате отправления:

Предыдущее
От: Janning Vygen
Дата:
Сообщение: Re: Having tough time getting php working for postgresql..
Следующее
От: Juan Miguel Paredes
Дата:
Сообщение: Re: conection problem after upgrade to php5 and postgres 8.0.3