RPMs for PHP accessing PostgreSQL via ODBC

RPMs for PHP accessing PostgreSQL via ODBC

Post by Chri » Wed, 07 Mar 2001 08:32:13

Quote:> > >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..

>No it isn't.  Postgres should be accessible via PHP whether it's on the
>same server or on a remote server (and Postgres is configured to allow
>remote access).  The only reason I can guess as to why ODBC is being used
>is to perhaps maintain code compatibility with the use of a different
>databse platform that the web server may have been using previously.

>-- Brett

I've never tried so had no idea :)

How do you configure it into PHP?

./configure --help | grep pgsql
   --with-pgsql[=DIR]      Include PostgreSQL support.  DIR is the PostgreSQL
                           base install directory, defaults to

Chris Smith

---------------------------(end of broadcast)---------------------------


1. [PHP] RPMs for PHP accessing PostgreSQL via ODBC over RedHat


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

Is there some similar RPM package to enable ODBC access in PHP4.0.1pl2?

If not, how should I procceed?


---------------------------(end of broadcast)---------------------------

2. US, CA, SAn Diego: Senior Oracle Programmer Analyst

3. RPMs for PHP accessing PostgreSQL via ODBC over

4. Unattended Install

5. RPMs for PHP accessing PostgreSQL via ODBC over RedHat

6. sql 6.5 update without logging

7. PHP+MySQL vs. PHP+PostgreSQL

8. Rollforward from destroyed db

9. [PHP] PostgreSQL + PHP + SQL warning messages

10. Calling an RPG program from PHP via ODBC

11. Problem with ODBC Connection to DB2 via PHP

12. Connect PHP with Progress via OIB/OID/ using ODBC for SQL89

13. ASP or PHP with FMP 5 via ODBC