pg.ddx.io  pgsql-php@postgresql.org mailing list archive  
help / color / mirror / Atom feed
Problem when connect with pgsql
4+ messages / 3 participants
[nested] [flat]

* Problem when connect with pgsql
@ 2006-06-14 08:56  Gita Purnamasari <gitapsari@gmail.com>
  0 siblings, 2 replies; 4+ messages in thread

From: Gita Purnamasari @ 2006-06-14 08:56 UTC (permalink / raw)
  To: pgsql-php

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






^ permalink  raw  reply  [nested|flat] 4+ messages in thread

* Re: Problem when connect with pgsql
@ 2006-06-14 09:09  Damián Culotta <dculotta@fibertel.com.ar>
  parent: Gita Purnamasari <gitapsari@gmail.com>
  1 sibling, 1 reply; 4+ messages in thread

From: Damián Culotta @ 2006-06-14 09:09 UTC (permalink / raw)
  To: Gita Purnamasari <gitapsari@gmail.com>; pgsql-php

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" <gitapsari@gmail.com>
To: <pgsql-php@postgresql.org>
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
>
> 





^ permalink  raw  reply  [nested|flat] 4+ messages in thread

* Re: Problem when connect with pgsql
@ 2006-06-14 09:53  Devrim GUNDUZ <devrim@commandprompt.com>
  parent: Gita Purnamasari <gitapsari@gmail.com>
  1 sibling, 0 replies; 4+ messages in thread

From: Devrim GUNDUZ @ 2006-06-14 09:53 UTC (permalink / raw)
  To: Gita Purnamasari <gitapsari@gmail.com>; +Cc: pgsql-php

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/





^ permalink  raw  reply  [nested|flat] 4+ messages in thread

* Re: Problem when connect with pgsql
@ 2006-06-14 11:18  Damián Culotta <dculotta@fibertel.com.ar>
  parent: Damián Culotta <dculotta@fibertel.com.ar>
  0 siblings, 0 replies; 4+ messages in thread

From: Damián Culotta @ 2006-06-14 11:18 UTC (permalink / raw)
  To: Gita Purnamasari <gitapsari@gmail.com>; +Cc: pgsql-php

You need to download the extensions for Php.
You have to download de .zip version of Php. In that file you have the 
extensions.
Copy the extensions into your Php directory, then you have to change your 
php.ini configuration.
First, you have to indicate the extensions_dir, I supouse that you have to 
write:

extension_dir = "c:\php\extensions"

After that, you have to uncomment the extension=php_pgsql.dll. (Have to 
erase the ";").

Sorry for my bad english, I'm out of practice.


----- Original Message ----- 
From: "Gita Purnamasari" <gitapsari@gmail.com>
To: "Damián Culotta" <dculotta@fibertel.com.ar>
Sent: Wednesday, June 14, 2006 7:12 AM
Subject: Re: [PHP] Problem when connect with pgsql


>I am using windows
>
> Damián Culotta wrote:
>
>> 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" 
>> <gitapsari@gmail.com>
>> To: <pgsql-php@postgresql.org>
>> 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
>>>
>>>
>>
>>
>>
>
>
> 





^ permalink  raw  reply  [nested|flat] 4+ messages in thread


end of thread, other threads:[~2006-06-14 11:18 UTC | newest]

Thread overview: 4+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2006-06-14 08:56 Problem when connect with pgsql Gita Purnamasari <gitapsari@gmail.com>
2006-06-14 09:09 ` Damián Culotta <dculotta@fibertel.com.ar>
2006-06-14 11:18   ` Damián Culotta <dculotta@fibertel.com.ar>
2006-06-14 09:53 ` Devrim GUNDUZ <devrim@commandprompt.com>

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox