Problem when connect with pgsql
Problem when connect with pgsql
am 14.06.2006 10:56:15 von Gita Purnamasari
Hello,
I am new on pgsql-php, whe i tried my new php script to connect with pgsql
occur message : Call to undefined function pg_connect() when i try to
connect
with pgsql, is there some thing to be set ?
Thaks
---------------------------(end of broadcast)---------------------------
TIP 1: if posting/reading through Usenet, please send an appropriate
subscribe-nomail command to majordomo@postgresql.org so that your
message can get through to the mailing list cleanly
Re: Problem when connect with pgsql
am 14.06.2006 11:09:40 von dculotta
It's seems taht you don't have the Php extensions to work with PostgreSql.
Are You using Windows or Linux?.
----- Original Message -----
From: "Gita Purnamasari"
To:
Sent: Wednesday, June 14, 2006 5:56 AM
Subject: [PHP] Problem when connect with pgsql
> Hello,
>
> I am new on pgsql-php, whe i tried my new php script to connect with pgsql
> occur message : Call to undefined function pg_connect() when i try to
> connect
> with pgsql, is there some thing to be set ?
> Thaks
>
>
>
>
> ---------------------------(end of broadcast)---------------------------
> TIP 1: if posting/reading through Usenet, please send an appropriate
> subscribe-nomail command to majordomo@postgresql.org so that your
> message can get through to the mailing list cleanly
>
>
---------------------------(end of broadcast)---------------------------
TIP 1: if posting/reading through Usenet, please send an appropriate
subscribe-nomail command to majordomo@postgresql.org so that your
message can get through to the mailing list cleanly
Re: Problem when connect with pgsql
am 14.06.2006 11:53:12 von Devrim GUNDUZ
Hi Gita,
On Wed, 2006-06-14 at 15:56 +0700, Gita Purnamasari wrote:
> I am new on pgsql-php, whe i tried my new php script to connect with
> pgsql occur message : Call to undefined function pg_connect() when i
> try to connect with pgsql, is there some thing to be set ?
Either you haven't enabled PostgreSQL support in your php.ini, or you
haven't installed pgsql extensions for PHP. The solution depends on your
operating system. For example for Linux variants, install php-pgsql (or
a similar name) package to enable PostgreSQL support for PHP. I'm not
sure how Windows guys do that.
Regards,
--
The PostgreSQL Company - Command Prompt, Inc. 1.503.667.4564
PostgreSQL Replication, Consulting, Custom Development, 24x7 support
Managed Services, Shared and Dedicated Hosting
Co-Authors: plPHP, plPerlNG - http://www.commandprompt.com/
---------------------------(end of broadcast)---------------------------
TIP 6: explain analyze is your friend
Re: Problem when connect with pgsql
am 14.06.2006 13:18:41 von dculotta
You need to download the extensions for Php.
You have to download de .zip version of Php. In that file you have the=20
extensions.
Copy the extensions into your Php directory, then you have to change your=
=20
php.ini configuration.
First, you have to indicate the extensions_dir, I supouse that you have t=
o=20
write:
extension_dir =3D "c:\php\extensions"
After that, you have to uncomment the extension=3Dphp_pgsql.dll. (Have to=
=20
erase the ";").
Sorry for my bad english, I'm out of practice.
----- Original Message -----=20
From: "Gita Purnamasari"
To: "Dami=E1n Culotta"
Sent: Wednesday, June 14, 2006 7:12 AM
Subject: Re: [PHP] Problem when connect with pgsql
>I am using windows
>
> Dami=E1n Culotta wrote:
>
>> It's seems taht you don't have the Php extensions to work with=20
>> PostgreSql.
>> Are You using Windows or Linux?.
>>
>> ----- Original Message ----- From: "Gita Purnamasari"=20
>>
>> To:
>> Sent: Wednesday, June 14, 2006 5:56 AM
>> Subject: [PHP] Problem when connect with pgsql
>>
>>
>>> Hello,
>>>
>>> I am new on pgsql-php, whe i tried my new php script to connect with=20
>>> pgsql
>>> occur message : Call to undefined function pg_connect() when i try to=
=20
>>> connect
>>> with pgsql, is there some thing to be set ?
>>> Thaks
>>>
>>>
>>>
>>>
>>> ---------------------------(end of broadcast)------------------------=
---
>>> TIP 1: if posting/reading through Usenet, please send an appropriate
>>> subscribe-nomail command to majordomo@postgresql.org so that yo=
ur
>>> message can get through to the mailing list cleanly
>>>
>>>
>>
>>
>>
>
>
>=20
---------------------------(end of broadcast)---------------------------
TIP 9: In versions below 8.0, the planner will ignore your desire to
choose an index scan if your joining column's datatypes do not
match