Thread: How to verify PHP has PostgreSQL support?

How to verify PHP has PostgreSQL support?

From
Mark Christenson
Date:
I ran configure and used the --with-pgsql option.  Things seemed to
build okay.  However, when I run a web page with a pg_Connect
statement, I get a parse error, which leads me to believe PHP doesn't
have the correct flags set.

I realize this may be more of a PHP question, but I'm hoping somebody
here can help ;-)

Mark

Re: How to verify PHP has PostgreSQL support?

From
Date:
Create a page with this in it:

<?
    phpinfo();
?>


On Sat, 9 Dec 2000, Mark Christenson wrote:

> I ran configure and used the --with-pgsql option.  Things seemed to
> build okay.  However, when I run a web page with a pg_Connect
> statement, I get a parse error, which leads me to believe PHP doesn't
> have the correct flags set.
>
> I realize this may be more of a PHP question, but I'm hoping somebody
> here can help ;-)
>
> Mark
>
>


Re: How to verify PHP has PostgreSQL support?

From
Mark Christenson
Date:
I did that - there's nothing about pgsql or postgresql.  So I take it
that I don't have the support?  :-)

I'll try to recompile and reinstall php4.

Thanks,

Mark


At 3:10 PM -0500 12/9/00, <nathan@0x00.org> wrote:
>Create a page with this in it:
>
><?
>    phpinfo();
>?>
>
>
>On Sat, 9 Dec 2000, Mark Christenson wrote:
>
> > I ran configure and used the --with-pgsql option.  Things seemed to
> > build okay.  However, when I run a web page with a pg_Connect
> > statement, I get a parse error, which leads me to believe PHP doesn't
> > have the correct flags set.
> >
> > I realize this may be more of a PHP question, but I'm hoping somebody
> > here can help ;-)
> >
> > Mark
> >
> >


Re: How to verify PHP has PostgreSQL support?

From
Doug Semig
Date:
You've got more going on than just not having support compiled in to PHP.
It seems to me that a parse error is different than an undefined function
error.

Doug

At 12:55 PM 12/9/00 -0800, Mark Christenson wrote:
>I did that - there's nothing about pgsql or postgresql.  So I take it
>that I don't have the support?  :-)
>
>I'll try to recompile and reinstall php4.
>
>Thanks,
>
>Mark
>
>
>At 3:10 PM -0500 12/9/00, <nathan@0x00.org> wrote:
>>Create a page with this in it:
>>
>><?
>>    phpinfo();
>>?>
>>
>>
>>On Sat, 9 Dec 2000, Mark Christenson wrote:
>>
>> > I ran configure and used the --with-pgsql option.  Things seemed to
>> > build okay.  However, when I run a web page with a pg_Connect
>> > statement, I get a parse error, which leads me to believe PHP doesn't
>> > have the correct flags set.
>> >
>> > I realize this may be more of a PHP question, but I'm hoping somebody
>> > here can help ;-)
>> >
>> > Mark
>> >
>> >
>
>
>


Re: How to verify PHP has PostgreSQL support?

From
"Adam Lang"
Date:
As someone else said.  If it was an error because it doesn't have pgsql
support, you would get an undefined function error, not a parse error.

Adam Lang
Systems Engineer
Rutgers Casualty Insurance Company
http://www.rutgersinsurance.com
----- Original Message -----
From: "Mark Christenson" <mark.christenson@alumni.stanford.org>
To: <pgsql-php@postgresql.org>
Sent: Saturday, December 09, 2000 3:00 PM
Subject: [PHP] How to verify PHP has PostgreSQL support?


> I ran configure and used the --with-pgsql option.  Things seemed to
> build okay.  However, when I run a web page with a pg_Connect
> statement, I get a parse error, which leads me to believe PHP doesn't
> have the correct flags set.
>
> I realize this may be more of a PHP question, but I'm hoping somebody
> here can help ;-)
>
> Mark