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
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!

Link to comment
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!

 

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 :)

 

Link to comment
Share on other sites

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

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.