pg.ddx.io  pgsql-php@postgresql.org mailing list archive  
help / color / mirror / Atom feed
Call to undefined function: pg_connect().
2+ messages / 2 participants
[nested] [flat]

* Call to undefined function: pg_connect().
@ 2004-10-12 06:12  alagu raj <alaguraj_v@yahoo.com>
  0 siblings, 1 reply; 2+ messages in thread

From: alagu raj @ 2004-10-12 06:12 UTC (permalink / raw)
  To: pgsql-php

hello all,
i was running postgresql-7.4.2 and php-4.3.7 and
apache-2.0.49 on RH-7.3. but the php script is unable
to connect tp pgsql.

<? php
$connect=pg_connect("host=localhost port=5432
dbname=DATABASENAME");
?> 

this shows error as: Fatal error: Call to undefined
function: pg_connect().
how can i sort this.
thanks in advance.


		
_______________________________
Do you Yahoo!?
Declare Yourself - Register online to vote today!
http://vote.yahoo.com



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

* Re: Call to undefined function: pg_connect().
@ 2004-10-12 06:28  Devrim GUNDUZ <devrim@gunduz.org>
  parent: alagu raj <alaguraj_v@yahoo.com>
  0 siblings, 0 replies; 2+ messages in thread

From: Devrim GUNDUZ @ 2004-10-12 06:28 UTC (permalink / raw)
  To: alagu raj <alaguraj_v@yahoo.com>; +Cc: pgsql-php

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1


Hi,

On Mon, 11 Oct 2004, alagu raj wrote:

> i was running postgresql-7.4.2 and php-4.3.7 and
> apache-2.0.49 on RH-7.3. but the php script is unable
> to connect tp pgsql.
>
> <? php
> $connect=pg_connect("host=localhost port=5432
> dbname=DATABASENAME");
> ?>
>
> this shows error as: Fatal error: Call to undefined
> function: pg_connect().

Install php-pgsql rpm and restart Apache.

Regards,

- --
Devrim GUNDUZ 
devrim~gunduz.org				devrim.gunduz~linux.org.tr
  			http://www.tdmsoft.com
  			http://www.gunduz.org
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.1 (GNU/Linux)

iD8DBQFBa3mTtl86P3SPfQ4RAqRPAKDAl4s1kSe/707Pp9ybToMYOC6UDgCeLpra
lHI+AH3ITSQleYX4Y3VtIk0=
=bvue
-----END PGP SIGNATURE-----



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


end of thread, other threads:[~2004-10-12 06:28 UTC | newest]

Thread overview: 2+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2004-10-12 06:12 Call to undefined function: pg_connect(). alagu raj <alaguraj_v@yahoo.com>
2004-10-12 06:28 ` Devrim GUNDUZ <devrim@gunduz.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