From: | Chris <dmagick(at)gmail(dot)com> |
---|---|
To: | semi-ambivalent <rloefgren(at)forethought(dot)net> |
Cc: | pgsql-general(at)postgresql(dot)org |
Subject: | Re: Changes in 8.2's PHP behaviour? |
Date: | 2006-12-19 05:08:23 |
Message-ID: | 458773C7.4030704@gmail.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | 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/
From | Date | Subject | |
---|---|---|---|
Next Message | Richard Broersma Jr | 2006-12-19 05:55:43 | Re: feature request for Postgresql Rule system. |
Previous Message | Richard Ollier | 2006-12-19 04:32:10 | View optimization |