Postgres - undefined function pg_escape_string

PHP Tools [?] extends Visual Studio with set of advanced features to work more efficiently with PHP code.

Postgres - undefined function pg_escape_string

Postby KCarterSr » May 31st, 2018, 1:48 pm

Im trying to use the postgres database in my VS, project and im getting the error, undefined function pg_escape_string(). apparently/MAYBE it needs the Postgres version of libpq.dll.

Note: the web app is working fine in VS, until it get's to that function call.

The PHP extension will look for libpq.dll which is found of your PostgreSQL installation. The simple fix is to add the path than contains that file to your environment PATH.

add to your enviroment variable "PATH" the bin folder of PostgreSQL installation: C:\Program Files\PostgreSQL\9.2\bin; (for example)

I tried that, but it didn't work. At least for IIS Express. I don't know.

Can anybody help?

K. Carter Sr.
Posts: 1
Joined: May 31st, 2018, 12:44 pm

Return to PHP Tools

Who is online

Users browsing this forum: No registered users and 4 guests


User Control Panel


Who is online

In total there are 4 users online :: 0 registered, 0 hidden and 4 guests (based on users active over the past 5 minutes)
Most users ever online was 62 on January 7th, 2012, 10:54 pm

Users browsing this forum: No registered users and 4 guests