pg.ddx.io  pgsql-php@postgresql.org mailing list archive  
help / color / mirror / Atom feed
undefined query!!!!!
3+ messages / 3 participants
[nested] [flat]

* undefined query!!!!!
@ 2003-03-28 08:31  James Cooper <jim@luckydigital.com>
  0 siblings, 2 replies; 3+ messages in thread

From: James Cooper @ 2003-03-28 08:31 UTC (permalink / raw)
  To: pgsql-php

dear all 

I've subscribed in the hope of a simple answer to my dilemma. 
I run a dev box(mandrake) with php4 and postgres fine 
I just added postgres support using apt-get on my debian production box 
after restarting apache I get this 

Fatal error: Call to undefined function: pg_query() 
when I try to query? 

this was added to my php.ini 
extension=pgsql.so 

and I checked it exists 
can anyone help? 
have i given enough info 


James

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

* Re: undefined query!!!!!
@ 2003-03-28 09:15  Francesco Piccinini <francesco.piccinini@st.com>
  parent: James Cooper <jim@luckydigital.com>
  1 sibling, 0 replies; 3+ messages in thread

From: Francesco Piccinini @ 2003-03-28 09:15 UTC (permalink / raw)
  To: jim@luckydigital.com; +Cc: pgsql-php

Has PHP been compiled with postgres support ?


Bye, Francesco

jim@luckydigital.com wrote:

> dear all
>
> I've subscribed in the hope of a simple answer to my dilemma.
> I run a dev box(mandrake) with php4 and postgres fine
> I just added postgres support using apt-get on my debian production
> box
> after restarting apache I get this
>
> Fatal error: Call to undefined function: pg_query()
> when I try to query?
>
> this was added to my php.ini
> extension=pgsql.so
>
> and I checked it exists
> can anyone help?
> have i given enough info
>
>
> James

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

* Re: undefined query!!!!!
@ 2003-03-28 13:13  brew@theMode.com
  parent: James Cooper <jim@luckydigital.com>
  1 sibling, 0 replies; 3+ messages in thread

From: brew@theMode.com @ 2003-03-28 13:13 UTC (permalink / raw)
  To: pgsql-php; +Cc: James Cooper <jim@luckydigital.com>


James......

> Fatal error: Call to undefined function: pg_query()
> when I try to query?

I think you need another package, too, possibly php4-pgsql, which contains
the php functions for postgreSQL.

apt-get install php4-pgsql

Be assured that I'm running postgreSQL, apache and php4 using off the
shelf packages in Debian (stable version) on my development laptop and it
works fine.  If you really get stuck I can check exactly what packages
I've loaded, but I think you've almost got it running.

You can check that postgreSQL support (plus lots of other information
about your php) with phpinfo.

<?php
phpinfo();
?>

Let me know......

brew




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


end of thread, other threads:[~2003-03-28 13:13 UTC | newest]

Thread overview: 3+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2003-03-28 08:31 undefined query!!!!! James Cooper <jim@luckydigital.com>
2003-03-28 09:15 ` Francesco Piccinini <francesco.piccinini@st.com>
2003-03-28 13:13 ` brew@theMode.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