Bookmarks

Yahoo Gmail Google Facebook Delicious Twitter Reddit Stumpleupon Myspace Digg

Search queries

sqldatasource dal, wwwxxxenden, convert raid5 to raid 10 mdadm, apache force chunked, nrao wwwxxx, xxxxxdup, procmail change subject header, wwwXxx not20, Wwwxxx.doks sas, linux raid resync after reboot

Links

XODOX
Impressum

#1: Fatal error: Call to undefined function pg_connect()

Posted on 2010-05-27 21:30:35 by Steve.Toutant

Message en plusieurs parties au format MIME
--=_related 006B2BA085257730_=
Content-Type: multipart/alternative; boundary="=_alternative 006B2BA085257730_="


--=_alternative 006B2BA085257730_=
Content-Type: text/plain; charset="US-ASCII"

Hi,
I created a php page and the code connects to my postgres database and do
stuff...
that works well when launched from a browser

But it doesn't from a command line
PHP myFile.php

I get this error
Fatal error: Call to undefined function pg_connect()

It seems that php.exe does not recognize postgres functions.

In \ms4w\Apache\cgi-bin\php.ini I have this:
extension=php_pgsql.dll and this dll is in \ms4w\Apache\php\ext

PATH variable contains this
C:\Program Files\PostgreSQL\8.3\bin;



phpinfo() launched via a browser give me this


This command php -i from a command prompt doesn't return any pgsql
extension
What should I do to be able to call the postgres functions when using
php.exe from a command line?
thanks
steve



--=_alternative 006B2BA085257730_=
Content-Type: text/html; charset="US-ASCII"


<br><font size=2 face="sans-serif">Hi,</font>
<br><font size=2 face="sans-serif">I created a php page and the code connects
to my postgres database and do stuff...</font>
<br><font size=2 face="sans-serif">that works well when launched from a
browser</font>
<br>
<br><font size=2 face="sans-serif">But it doesn't from a command line</font>
<br><font size=2 face="sans-serif">PHP myFile.php</font>
<br>
<br><font size=2 face="sans-serif">I get this error</font>
<br><font size=2 face="sans-serif">Fatal error: Call to undefined function
pg_connect()</font>
<br>
<br><font size=2 face="sans-serif">It seems that php.exe does not recognize
postgres functions.</font>
<br>
<br><font size=2 face="sans-serif">In \ms4w\Apache\cgi-bin\php.ini I have
this:</font>
<br><font size=2 face="sans-serif">extension=php_pgsql.dll and this dll
is in \ms4w\Apache\php\ext</font>
<br>
<br><font size=2 face="sans-serif">PATH variable contains this</font>
<br><font size=2 face="sans-serif">C:\Program Files\PostgreSQL\8.3\bin;</font>
<br>
<br>
<br>
<br><font size=2 face="sans-serif">phpinfo() launched via a browser give
me this</font>
<br><img src=cid:_1_079D49E0079D478C006B2BA085257730>
<br>
<p><font size=2 face="sans-serif">This command php -i from a command prompt
doesn't return any pgsql extension</font>
<p><font size=2 face="sans-serif">What should I do to be able to call the
postgres functions when using php.exe from a command line?</font>
<p><font size=2 face="sans-serif">thanks</font>
<p><font size=2 face="sans-serif">steve</font>
<p>
<br>
<br>
--=_alternative 006B2BA085257730_=--
--=_related 006B2BA085257730_=
Content-Transfer-Encoding: base64
Content-Type: image/gif
Content-ID: <_1_079D49E0079D478C006B2BA085257730>

R0lGODlhbAJoAecAAP///8jIyJiYyMjI+AAAAMiYcDh42LB4SMiweJjIyAAA SHiw+Pj4ADgAWDgA
AMiwmFiY+ABYuFgAAMjIuAAAOJhYAIBYOFiAyChYsHiwyAAAcJiAeCgAAMjI mJjI+JhwWHg4AEBw
yMiYWAA4mABAmMjIsFgAOLDI+FiYyAAAWLDIyJiYmEAAAFhYcDh4sABImNj4 +AA4eMjI2HAAAHg4
OPj4uDAAADg4eHBAAAAwAHCYyLhwAAAoeICYyFgoAJiYsDhYcDhYuLB4OPjA ABAAABBYAFjAALj4
+Dg4SEgAAABYWABYmEBAWMBYAPjYmFgAWFh4mDCIADgASDh4mEiY2HC4+Igw AChAWPi4cHhYAJh4
SPiIAABwuCgAOFg4AHh4SIj4AJhIAJjY+LDImLDI2NiYSDh4uPj42AA4cDgA OFhYOJh4OJjImCgo
OChAmEhIAHh4cHiw2AAQAAAoWAA4SAA4WBAwAEAAWEAoAFgAcFgQAHBYOHh4 OJjIuNj4uABISAAA
AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAA
AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA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h
hRt+OOKJK7444407/jjkkUs+OeWVW3455plrvjnnnXv+Oeihiz466aWbfjrq qau+Ouutuw56QAA7
--=_related 006B2BA085257730_=--

Report this message

#2: Re: Fatal error: Call to undefined function pg_connect()

Posted on 2010-05-28 00:50:55 by dmagick

On 28/05/10 05:30, Steve.Toutant@inspq.qc.ca wrote:
>
> Hi,
> I created a php page and the code connects to my postgres database and
> do stuff...
> that works well when launched from a browser
>
> But it doesn't from a command line
> PHP myFile.php
>
> I get this error
> Fatal error: Call to undefined function pg_connect()
>
> It seems that php.exe does not recognize postgres functions.
>
> In \ms4w\Apache\cgi-bin\php.ini I have this:
> extension=php_pgsql.dll and this dll is in \ms4w\Apache\php\ext

Any errors in apache or system logs ?

Could there be something this dll is missing? I don't know much about
windows unfortunately but this may help figure out what else you need to
include:

http://www.dependencywalker.com/

--
Postgresql & php tutorials
http://www.designmagick.com/


--
Sent via pgsql-php mailing list (pgsql-php@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-php

Report this message

#3: Re: Fatal error: Call to undefined function pg_connect()

Posted on 2010-05-28 01:19:15 by Andrew McMillan

--=-HHjDLxZ+bdkbWBtrGjGI
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable

On Thu, 2010-05-27 at 15:30 -0400, Steve.Toutant@inspq.qc.ca wrote:
>=20
> Hi,=20
> I created a php page and the code connects to my postgres database and
> do stuff...=20
> that works well when launched from a browser=20
>=20
> But it doesn't from a command line=20
> PHP myFile.php=20
>=20
> I get this error=20
> Fatal error: Call to undefined function pg_connect()=20
>=20
> It seems that php.exe does not recognize postgres functions.=20
>=20
> In \ms4w\Apache\cgi-bin\php.ini I have this:=20
> extension=3Dphp_pgsql.dll and this dll is in \ms4w\Apache\php\ext=20

When you run PHP from the command line you will be using a different
php.ini, and it's that one that you need to find and add the above line
to.
>=20
> PATH variable contains this=20
> C:\Program Files\PostgreSQL\8.3\bin;=20
>=20
>=20
>=20
> phpinfo() launched via a browser give me this=20

Try launching phpinfo() from a command line.

PHP -r 'phpinfo();'


Not that I've used it on Windows, but that's certainly how it works on
Linux.

Cheers,
Andrew.


--=20
------------------------------------------------------------ ------------
andrew (AT) morphoss (DOT) com +64(272)DEBIAN
Chicken Little only has to be right once.
------------------------------------------------------------ ------------


--=-HHjDLxZ+bdkbWBtrGjGI
Content-Type: application/pgp-signature; name="signature.asc"
Content-Description: This is a digitally signed message part

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.10 (GNU/Linux)

iEYEABECAAYFAkv+/e8ACgkQjJA0f48GgBJZRQCeN87ivrPSzCMtX1LMY7WI CyVh
p2oAn2DqHv23awEh9U67ZEQkkxCM+LWN
=V2az
-----END PGP SIGNATURE-----

--=-HHjDLxZ+bdkbWBtrGjGI--

Report this message