I seem to have trouble getting PostgreSQL to work on XAMPP (using Lubuntu 14.02). I am new to working with both PHP, servers and databases, but I get the following error message.
Fatal error: Call to undefined function pg_escape_string() in /opt/lampp/htdocs/imageability/SkjemaDatabase.php on line 551
So it seems to me to be a problem with PostgreSQL. The same error message shows up for
pg_connect(). I have tried a few things to get PostgreSQL to work with XAMPP, like uncommenting the following lines in my file
php.ini and then restarting the server, without success.
I have also read you can try to copy the file
libpq.dll to Apache folder, but I don't seem to have this file at all (searched with
find). Can this be the problem?
I have also tried downloading Apache2, PHP5 and PostgreSQL seperately, but this doesn't seem to help me, as I in this case just get a blank page, without an error message even. The PHP files I am using are fine and working for other people and I can also get other PHP files to work on the server.
Grateful for any help!