Re: Changes in 8.2's PHP behaviour? - Mailing list pgsql-general

From Chris
Subject Re: Changes in 8.2's PHP behaviour?
Date
Msg-id 458773C7.4030704@gmail.com
Whole thread Raw
In response to Changes in 8.2's PHP behaviour?  ("semi-ambivalent" <rloefgren@forethought.net>)
List pgsql-general
semi-ambivalent wrote:
> All,
>
> I have a simple web page that inserts data into a table in 8.1.5 using
> PHP4. It's pretty amateurish but gets the job done. A few days ago I
> upgraded to 8.2 (this is on a FreeBSD system, and I used the port) but
> when I tried to use the web page this morning I got errors about:
>
> PHP Fatal error:  Call to undefined function:  pg_escape_string() in
> /usr/local/www/data-dist/some_dir/some_dir/dataInsert.php on line 9,
> referer: http://localhost/some_dir/some_dir/dataEnter.php

That means that the 'pg_escape_string' function doesn't exist (it's not
*that* cryptic). Do you have postgres support in php?

Create a php info page:

<?php
phpinfo();
?>

view it in a browser... there should be a big "postgresql" section - if
there isn't, that's the problem..

As others have suggested, maybe you need to update the php-pgsql library
as well.

--
Postgresql & php tutorials
http://www.designmagick.com/

pgsql-general by date:

Previous
From: Reece Hart
Date:
Subject: Re: Anyone? Best way to authenticate postgres against
Next
From: Richard Ollier
Date:
Subject: View optimization