From: | Michael Fork <mfork(at)toledolink(dot)com> |
---|---|
To: | Chris <csmith(at)squiz(dot)net> |
Cc: | pgsql-general(at)postgresql(dot)org |
Subject: | Re: Re: RPMs for PHP accessing PostgreSQL via ODBC over RedHat |
Date: | 2001-03-05 22:50:50 |
Message-ID: | Pine.BSI.4.21.0103051749110.17564-100000@glass.toledolink.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-general |
Just FYI, but PHP can be used to talk to a remote postgres server using
native postgres calls, i.e.:
$conn = pg_connect("host=some.host.com user=me password=i db=test");
pg_exec($conn, "SELECT * FROM pg_class");
pg_close($conn);
Michael Fork - CCNA - MCP - A+
Network Support - Toledo Internet Access - Toledo Ohio
On Tue, 6 Mar 2001, Chris wrote:
>
> >Is it really necessary to use PHP and ODBC? PHP has a native postgresql
> >interface I believe...
>
> It sounds like the postgres server is a different machine to the web
> server, so ODBC is needed to communicate between the 2..
> I have no answer for that unfortunately :(
> This url *might* be of use - http://www.php.net/manual/en/ref.odbc.php
>
> Let us know how you go & what you did :)
>
> >>Hi,
> >>We are currently running the following configuration on our server:
> >>Linux Red Hat 7.0
> >>PostgreSQL 7.1beta4-1
> >>PHP 4.0.1pl2
> >>I need to add some RPM package (or perhaps an apache module) to enable PHP
> >>to access PostgreSQL via ODBC.
> >>In order to have PostgreSQL native access support we installed package
> >>'php-pgsql-4.0.1pl2-9.i386.rpm'.
> >>Is there some similar RPM package to enable ODBC access in PHP4.0.1pl2?
> >>If not, how should I procceed?
> >>TIA,
> >>Paulo
>
> ------------------------
> Chris Smith
> http://www.squiz.net
>
>
> ---------------------------(end of broadcast)---------------------------
> TIP 2: you can get off all lists at once with the unregister command
> (send "unregister YourEmailAddressHere" to majordomo(at)postgresql(dot)org)
>
From | Date | Subject | |
---|---|---|---|
Next Message | Stephan Szabo | 2001-03-05 22:51:46 | Re: function overloading / ambigous functions |
Previous Message | Peter Eisentraut | 2001-03-05 22:40:57 | Re: Getting lengths of variable fields |