pg.ddx.io  pgsql-php@postgresql.org mailing list archive  
help / color / mirror / Atom feed
Enabling PHP
4+ messages / 4 participants
[nested] [flat]

* Enabling PHP
@ 2001-01-08 22:09  Paul Joseph McGee <mcgee@student.cs.ucc.ie>
  0 siblings, 2 replies; 4+ messages in thread

From: Paul Joseph McGee @ 2001-01-08 22:09 UTC (permalink / raw)
  To: pgsql-php

I am trying to connect to a databse from a php script but I get the error:
Fatal error:Call to undefined function: pg_connect(). I read that from the
mailing list archives that I mustnt have compiled some package with the
postresql library. Could someone tell me how I would fix this.
Thanks,
Paul



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

* Re: Enabling PHP
@ 2001-01-08 22:20  Chris <csmith@squiz.net>
  parent: Paul Joseph McGee <mcgee@student.cs.ucc.ie>
  1 sibling, 1 reply; 4+ messages in thread

From: Chris @ 2001-01-08 22:20 UTC (permalink / raw)
  To: Paul Joseph McGee <mcgee@student.cs.ucc.ie>; pgsql-php

Hi,

Yup, you're right. PHP hasn't been compiled with PostgreSQL. You need to 
compile PHP again.

If any problems, check out my small tutorial - 
http://designmagick.50megs.com/postgresql-tutorial/
it might help with a step missed or something like that.

Hope that helps..

>I am trying to connect to a databse from a php script but I get the error:
>Fatal error:Call to undefined function: pg_connect(). I read that from the
>mailing list archives that I mustnt have compiled some package with the
>postresql library. Could someone tell me how I would fix this.
>Thanks,
>Paul

------------------------
Chris Smith
http://www.squiz.net




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

* Re: Enabling PHP
@ 2001-01-09 13:59  Adam Lang <aalang@rutgersinsurance.com>
  parent: Chris <csmith@squiz.net>
  0 siblings, 0 replies; 4+ messages in thread

From: Adam Lang @ 2001-01-09 13:59 UTC (permalink / raw)
  To: pgsql-php

www.php.net has rather decent instructions also.

Adam Lang
Systems Engineer
Rutgers Casualty Insurance Company
http://www.rutgersinsurance.com
----- Original Message -----
From: "Chris" <csmith@squiz.net>
To: "Paul Joseph McGee" <mcgee@student.cs.ucc.ie>;
<pgsql-php@postgresql.org>
Sent: Monday, January 08, 2001 5:20 PM
Subject: Re: [PHP] Enabling PHP


> Hi,
>
> Yup, you're right. PHP hasn't been compiled with PostgreSQL. You need to
> compile PHP again.
>
> If any problems, check out my small tutorial -
> http://designmagick.50megs.com/postgresql-tutorial/
> it might help with a step missed or something like that.
>
> Hope that helps..
>
> >I am trying to connect to a databse from a php script but I get the
error:
> >Fatal error:Call to undefined function: pg_connect(). I read that from
the
> >mailing list archives that I mustnt have compiled some package with the
> >postresql library. Could someone tell me how I would fix this.
> >Thanks,
> >Paul
>
> ------------------------
> Chris Smith
> http://www.squiz.net




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

* Re: Enabling PHP
@ 2001-01-09 14:04  Anuradha Ratnaweera <anuradha@gnu.org>
  parent: Paul Joseph McGee <mcgee@student.cs.ucc.ie>
  1 sibling, 0 replies; 4+ messages in thread

From: Anuradha Ratnaweera @ 2001-01-09 14:04 UTC (permalink / raw)
  To: Paul Joseph McGee <mcgee@student.cs.ucc.ie>; +Cc: pgsql-php


If you compiled php yourself, you will have to recompile it with

--with-pgsql

On the other hand, if you installed the package that came with your
linux/unix distribution, it should also have a pgsql module for php. Try
installing it.

Anuradha

On Mon, 8 Jan 2001, Paul Joseph McGee wrote:

> I am trying to connect to a databse from a php script but I get the error:
> Fatal error:Call to undefined function: pg_connect(). I read that from the
> mailing list archives that I mustnt have compiled some package with the
> postresql library. Could someone tell me how I would fix this.
> Thanks,
> Paul
> 




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


end of thread, other threads:[~2001-01-09 14:04 UTC | newest]

Thread overview: 4+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2001-01-08 22:09 Enabling PHP Paul Joseph McGee <mcgee@student.cs.ucc.ie>
2001-01-08 22:20 ` Chris <csmith@squiz.net>
2001-01-09 13:59   ` Adam Lang <aalang@rutgersinsurance.com>
2001-01-09 14:04 ` Anuradha Ratnaweera <anuradha@gnu.org>

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