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

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]



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@xxxxxx>
Date: Jan 11, 2006 1:00 PM
Subject: Re: [PHP] Having tough time getting php working for postgresql..
To: pgsql-php@xxxxxxxxxxxxxx
Cc: Patrick White <ptothew@xxxxxxxxx>


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


[Index of Archives]     [Postgresql General]     [Postgresql Admin]     [PHP Users]     [PHP Home]     [PHP on Windows]     [Kernel Newbies]     [PHP Classes]     [PHP Databases]     [Yosemite Backpacking]     [Postgresql Jobs]

  Powered by Linux