[thelist] Your PHP installation does not support PostgreSQL. You need to recompile PHP using the --with-pgsql configure option.

Hassan Schroeder hassan.schroeder at gmail.com
Wed Oct 17 09:27:49 CDT 2007


On 10/17/07, jothi jothi <jthjothi at yahoo.com> wrote:
> i am a student doing a project in using php and xampp server..now i have t use posgresql..i had installed the posgresql ready...but when i got below errors as i comile one of the coding...
>
>   Your PHP installation does not support PostgreSQL. You need to recompile PHP using the --with-pgsql configure option.
>
>       Fatal error: Call to undefined function: pg_connect() in C:\Program Files\xampp\htdocs\posgre.php on line 54
>
>   1.can some one explain to me ,how n recompile the php?

Download the source and follow the directions :-)

>   2.Why the pg_connect function is undefined?

? You already have the answer -- your version of PHP doesn't
include the PostgreSQL functions.

>   3.How i know that i have installed the posgresql correctly?

When (1) it starts and (2) you can connect to it from a client.

>   4.How i can run the server?

Um, as you would any other command? Or are you asking about
creating a start-on-boot script? That would depend on your OS.

Good luck,
-- 
Hassan Schroeder ------------------------ hassan.schroeder at gmail.com



More information about the thelist mailing list