Re: Fatal error: Call to undefined function pg_Connect()

Lists: 토토 꽁 머니 : 토토 꽁 머니 메일 링리스트 : 2017-01-06 이후 PGSQL-PHP 19:07
From: Olorin <can(at)yabil(dot)net>
To: pgsql-php(at)postgresql(dot)org
Subject: Fatal error: Call to undefined function pg_Connect()
Date: 2017-01-03 10:46:01
Message-ID: 1483440361661-5937112.post@n3.nabble.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: pgsql-php

i ve Ubuntu 16.04 with php7, apache2, PostgreSQL v9.5 VPS at digitalocean and
im tryig to read data form Odoo 8 PostgreSQL. im lack of knowledge and
trying to learn.

here is the code which is in my 2nd hosting server php
http://pastebin.com/R3bwfXtR

but im getting Call to undefined function pgConnect() in
/home/f****/publichtml/***.****.net/new.php on line 11

php -i result:
http://pastebin.com/5z6G73Tw

i tried like every possible solutions but no luck. DigitalOcean support team
couldnt solve it in 4 days and now im open to all solutions.
i can give u server access if you are reliable.

Sorry for my bad english.
Please help

--
View this message in context: http://postgresql.nabble.com/Fatal-error-Call-to-undefined-function-pg-Connect-tp5937112.html
Sent from the PostgreSQL - php mailing list archive at Nabble.com.


From: "Greg Sabino Mullane" <greg(at)turnstep(dot)com>
To: pgsql-php(at)postgresql(dot)org
Cc: can(at)yabil(dot)net
Subject: Re: Fatal error: Call to undefined function pg_Connect()
Date: 2017-01-06 19:07:21
Message-ID: f46ef894d251139d07c879a751d08c24@biglumber.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: 토토 꽁 머니 : 토토 꽁 머니 메일 링리스트 : 2017-01-06 이후 PGSQL-PHP 19:07


-----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(at)turnstep(dot)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-----