Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cPZry-0000Xy-H0 for pgsql-php@arkaria.postgresql.org; Fri, 06 Jan 2017 19:08:06 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1cPZry-00077c-48 for pgsql-php@arkaria.postgresql.org; Fri, 06 Jan 2017 19:08:06 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1cPZrN-0006Pi-HT for pgsql-php@postgresql.org; Fri, 06 Jan 2017 19:07:29 +0000 Received: from zql.com ([206.222.31.58]) by magus.postgresql.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.84_2) (envelope-from ) id 1cPZrJ-0007LY-Jk for pgsql-php@postgresql.org; Fri, 06 Jan 2017 19:07:29 +0000 Received: from localhost ([127.0.0.1]) by zql.com with smtp (Exim 4.68) (envelope-from ) id 1cPZrF-0003Vg-2y; Fri, 06 Jan 2017 14:07:21 -0500 From: "Greg Sabino Mullane" To: pgsql-php@postgresql.org CC: can@yabil.net CC: can@yabil.net Subject: Re: Fatal error: Call to undefined function pg_Connect() X-PGP-Key: 2529 DF6A B8F7 9407 E944 45B4 BC9B 9067 1496 4AC8 X-Request-PGP: http://www.biglumber.com/x/web?pk=2529DF6AB8F79407E94445B4BC9B906714964AC8 In-Reply-To: <1483440361661-5937112.post@n3.nabble.com> Content-type: text/plain; charset=UTF-8 Date: Fri, 6 Jan 2017 19:07:21 -0000 X-Mailer: JoyMail 3.1.0 Message-ID: X-Pg-Spam-Score: -1.9 (-) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-php Precedence: bulk Sender: pgsql-php-owner@postgresql.org -----BEGIN PGP SIGNED MESSAGE----- Hash: RIPEMD160 > but im getting Call to undefined function pgConnect() in > /home/f****/publichtml/***.****.net/new.php on line 11 Was it really "pgConnect()" not pg_Connect()? Precision is important when reporting error messages. We'll assume that pg_connect() was the function not found. It looks like you have PDO support compiled in, so the best solution is to simply use that instead of the older pg_* functions. See for example: https://phpdelusions.net/pdo (There are many other tutorials. With all, replace mysql with pgsql) - -- Greg Sabino Mullane greg@turnstep.com End Point Corporation http://www.endpoint.com/ PGP Key: 0x14964AC8 201701061401 http://biglumber.com/x/web?pk=2529DF6AB8F79407E94445B4BC9B906714964AC8 -----BEGIN PGP SIGNATURE----- iEYEAREDAAYFAlhv6r8ACgkQvJuQZxSWSshx9wCgihVLLKwdXTXx6g4xXuGyUokM 2JIAnjmhJ0Kzg1Y1ZjDF+wv1Y5wHIOBn =qoPH -----END PGP SIGNATURE----- -- Sent via pgsql-php mailing list (pgsql-php@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-php