blic Posted May 12, 2011 Share Posted May 12, 2011 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! Quote Link to comment https://forums.phpfreaks.com/topic/236169-xampp-php-and-pg-probelm/ Share on other sites More sharing options...
jonsjava Posted May 12, 2011 Share Posted May 12, 2011 Try restarting Apache. If you edited the file after starting Apache, then the change won't be visible. Let me know if this resolves the issue. Quote Link to comment https://forums.phpfreaks.com/topic/236169-xampp-php-and-pg-probelm/#findComment-1214289 Share on other sites More sharing options...
blic Posted May 12, 2011 Author Share Posted May 12, 2011 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! Quote Link to comment https://forums.phpfreaks.com/topic/236169-xampp-php-and-pg-probelm/#findComment-1214449 Share on other sites More sharing options...
irebmy Posted May 12, 2011 Share Posted May 12, 2011 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 Quote Link to comment https://forums.phpfreaks.com/topic/236169-xampp-php-and-pg-probelm/#findComment-1214603 Share on other sites More sharing options...
blic Posted May 12, 2011 Author Share Posted May 12, 2011 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 Quote Link to comment https://forums.phpfreaks.com/topic/236169-xampp-php-and-pg-probelm/#findComment-1214722 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.