Call to undefined function pg_connect() in…

You got that pesky error: “Call to undefined function pg_connect() in…”? I got the solution. Hopefully!

Here is what I use:

  • PHP 5.2.6
  • Apache 2.2
  • PostgreSQL 8.0
  • MySQL 5.0

How I solved it: I replaced the file php_pgsql.dll (5.2.6) located in %PHP_folder%\ext with an older one (5.2.5) and it worked. The file can be downloaded from here.

Now it works.

Dacă ți-a plăcut acest articol, recomandă-l și altora folosind butoanele pentru Twitter, Facebook și Google +1.
Acest articol a fost publicat în PHP PGSQL Knowledge Base. Salvează legătura permanentă. .

Lasă un răspuns

Adresa ta de email nu va fi publicată. Câmpurile necesare sunt marcate *

*

Poți folosi aceste etichete HTML și atribute: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

Vreau să fiu părtaș la faptă. Poți, de asemenea, să fii părtaș și fără martori.