pg.ddx.io pgsql-php@postgresql.org mailing list archivehelp / color / mirror / Atom feed
From: Greg Sabino Mullane <greg@turnstep.com>
To: pgsql-php@postgresql.org
Cc: can@yabil.net
Subject: Re: Fatal error: Call to undefined function pg_Connect()
Date: Fri, 6 Jan 2017 19:07:21 -0000
Message-ID: <f46ef894d251139d07c879a751d08c24@biglumber.com> (raw)
In-Reply-To: <1483440361661-5937112.post@n3.nabble.com>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-php>
-----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
view thread (5+ messages)
Message-ID: <f46ef894d251139d07c879a751d08c24@biglumber.com> Permalink: ../f46ef894d251139d07c879a751d08c24@biglumber.com/ Also on: postgresql.org/message-id/f46ef894d251139d07c879a751d08c24@biglumber.com ·
reply
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Reply to all the recipients from your mail client; the link fills in the headers below: reply via email Some clients, webmail especially, drop In-Reply-To and References from a link, and the reply then starts a new thread: use the mbox below. To: pgsql-php@postgresql.org Cc: greg@turnstep.com, can@yabil.net Subject: Re: Fatal error: Call to undefined function pg_Connect() In-Reply-To: <f46ef894d251139d07c879a751d08c24@biglumber.com> References: <1483440361661-5937112.post@n3.nabble.com> <f46ef894d251139d07c879a751d08c24@biglumber.com> * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions for how to clone and mirror all data and code used for this inbox