If you were Registered and logged in, you could reply and use other advanced thread options
|
Posted by Jivanmukta on June 8, 2009, 12:30 am
I need to use PDO and PostgreSQL. I use WAMPSERVER Version 2.0, Apache
Version 2.2.11, PHP Version 5.2.9-2.
I uncommented (in php.ini) line
extension=php_pdo_pgsql.dll
I have such file in ext/.
extension=php_pdo.dll I had already enabled.
My phpinfo returns
PDO drivers mysql, sqlite
I mean it doesn't tell anything about pgsql.
(I rebooted my computer.)
Please help.
|
|
Posted by Jerry Stuckle on June 8, 2009, 5:32 am
Jivanmukta wrote:
> I need to use PDO and PostgreSQL. I use WAMPSERVER Version 2.0, Apache
> Version 2.2.11, PHP Version 5.2.9-2.
> I uncommented (in php.ini) line
> extension=php_pdo_pgsql.dll
> I have such file in ext/.
> extension=php_pdo.dll I had already enabled.
> My phpinfo returns
> PDO drivers mysql, sqlite
> I mean it doesn't tell anything about pgsql.
> (I rebooted my computer.)
> Please help.
Do you have the Postgres client libraries installed and available to the
web server (i.e. in your PATH variable)? Did you enable the Postgres
extension (php_pgsql.dll)?
--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
jstucklex@attglobal.net
==================
|
|
Posted by Jivanmukta on June 8, 2009, 7:28 am
> Do you have the Postgres client libraries installed and available to the
> web server (i.e. in your PATH variable)? =A0
I don't have Postgres in my PATH because installer didn't add it. But
psql and pgAdmin work fine so I think I have libraries working.
> Did you enable the Postgres
> extension (php_pgsql.dll)?
I have extension=3Dphp_pgsql.dll in my php.ini, but I don't see it in
phpinfo.
|
|
Posted by Jerry Stuckle on June 8, 2009, 7:37 am
Jivanmukta wrote:
>> Do you have the Postgres client libraries installed and available to the
>> web server (i.e. in your PATH variable)?
>
> I don't have Postgres in my PATH because installer didn't add it. But
> psql and pgAdmin work fine so I think I have libraries working.
>
>> Did you enable the Postgres
>> extension (php_pgsql.dll)?
>
> I have extension=php_pgsql.dll in my php.ini, but I don't see it in
> phpinfo.
Just because pgAdmin works doesn't mean things are set up properly. If
the libraries are not accessible to the web server process, PHP can't
load them.
--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
jstucklex@attglobal.net
==================
|
|
Posted by Jerry Stuckle on June 8, 2009, 4:08 pm
Jivanmukta wrote:
>> Do you have the Postgres client libraries installed and available to the
>> web server (i.e. in your PATH variable)?
>
> I don't have Postgres in my PATH because installer didn't add it. But
> psql and pgAdmin work fine so I think I have libraries working.
>
>> Did you enable the Postgres
>> extension (php_pgsql.dll)?
>
> I have extension=php_pgsql.dll in my php.ini, but I don't see it in
> phpinfo.
One other thing - ensure the php.ini you changed is the one listed in
phpinfo(). You may have more than one.
--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
jstucklex@attglobal.net
==================
|
If you were Registered and logged in, you could reply and use other advanced thread options
Related Posts
Latest Posts
|
> Version 2.2.11, PHP Version 5.2.9-2.
> I uncommented (in php.ini) line
> extension=php_pdo_pgsql.dll
> I have such file in ext/.
> extension=php_pdo.dll I had already enabled.
> My phpinfo returns
> PDO drivers mysql, sqlite
> I mean it doesn't tell anything about pgsql.
> (I rebooted my computer.)
> Please help.