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.

I FOUND THIS COMMENT VIA GOOGLE,
-------------------------------
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.
KCarterSr
 
Posts: 1
Joined: May 31st, 2018, 12:44 pm

Return to PHP Tools

Who is online

Users browsing this forum: No registered users and 5 guests

cron

User Control Panel

Login

Who is online

In total there are 5 users online :: 0 registered, 0 hidden and 5 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 5 guests
Phalanger