Page 1 of 1

function pg_escape_string

Posted: Sat Jun 10, 2017 3:19 am
by khampol
Hi,

I have this error :

Code: Select all

Fatal error: Call to undefined function pg_escape_string() in /home/admin/web/xxxxxx.info/public_html/xxxxx/connections/PostgreConnection.php on line 30
I think need to install
pg_escape_string
Q : I use this command to install ?

Code: Select all

sudo apt-get install php5-pgsql
Is it ok with Vesta? ....

Re: function pg_escape_string

Posted: Sun Jun 11, 2017 7:57 pm
by ScIT
Should not be a problem, you can install normaly any module you want.

Re: function pg_escape_string

Posted: Mon Jun 12, 2017 8:02 pm
by viraladmin
As I have no idea what your config is, I would highly recommend knowing what version of php is running before installing php modules

Code: Select all

thedown1@marketers:/home/thedown1/conf/web# php -v
PHP 5.6.30-10+deb.sury.org~xenial+2 (cli)
Copyright (c) 1997-2016 The PHP Group
Zend Engine v2.6.0, Copyright (c) 1998-2016 Zend Technologies
    with Zend OPcache v7.0.6-dev, Copyright (c) 1999-2016, by Zend Technologies