Jump to content

Xampp, PHP and pg probelm


Recommended Posts

Hi All,

 

I'm trying to get xampp working, but I'm getting the following error:

Fatal error: Call to undefined function pg_connect()

 

I've checked php.ini to uncomment the lines:

extension=php_pdo_pgsql.dll

extension=php_pgsql.dll

But I still don't get it to work.

 

I using windows 7 64bits.

I've downloaded the latest available version of Xampp for Windows: v1.7.4

 

Also, when I check phpinfo() I don't see postgre loaded. I've tested loading other extensions, and they work, but not the one i need.

 

Would anybody know how to solve this?

Thanks!

Link to comment
https://forums.phpfreaks.com/topic/236169-xampp-php-and-pg-probelm/
Share on other sites

Hey,

thanks for the reply, but I've restarted Apache but nothing happens..

I know the modifications I do take effect because, although what I want won't work, some other things I've modified just for testing worked.

 

One person suggested me that it might have to do with the fact that I'm using a 64bit machine, and the pg dll might not work with that. What do you think?

 

Thanks!

Hey,

thanks for the reply, but I've restarted Apache but nothing happens..

I know the modifications I do take effect because, although what I want won't work, some other things I've modified just for testing worked.

 

One person suggested me that it might have to do with the fact that I'm using a 64bit machine, and the pg dll might not work with that. What do you think?

 

Thanks!

 

i think you should try or download other php installation...

i'm also got that problem before,

then i change to php5.25 or you can copy the pg dll files to your current php installation.

i'm using wamp server2.0.i think you should try it..

download the wamp server and addons php 5.25 or 5.26

 

http://www.wampserver.com/en/addons_php.php

 

correct me if i'm wrong :)

 

I actually downloaded the previous version of Xampp and it worked. I read a post somewhere where lots of people were complaining about it, and they all were saying that they had a 64bit machine and that the other version worked. so i tried and it worked! :)

 

Thanks for your help!

Cheers

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.