(done) Postgres - undefined function pg_escape_string
Posted: 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.
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.