xampp's php no support for postgresql?

Alles, was PHP betrifft, kann hier besprochen werden.

xampp's php no support for postgresql?

Postby carloshhp666 » 02. July 2010 23:55

i'm trying to connect to a postgres DB but i always get this error:

Fatal error: Call to undefined function pg_connect() in C:\xampp\htdocs\dos.php on line 14

this is the code:

line 13. // conect to BD
line 14. $dbconn = pg_connect("host=localhost dbname=temporal user=postgres password=postgres") or die('No se pudo conectar a la BD: ' . pg_last_error());

for what i've read i should get a "1" when run this line: - echo extension_loaded('pgsql'); -, but i get nothing printed
i also printed the phpinfo(); but i get no infotmaiton about pgsql or postgres

so idk what's wrong, can i update xampps's php version? or what can i do?? :(

i'm using xampp 2.5.8, postgresql 1.10.3 and dreamweaver 8
carloshhp666
 
Posts: 1
Joined: 02. July 2010 23:20

Return to PHP

Who is online

Users browsing this forum: No registered users and 15 guests