RPMs for PHP accessing PostgreSQL via ODBC over RedHat

RPMs for PHP accessing PostgreSQL via ODBC over RedHat

Post by J.Goodlea » Wed, 07 Mar 2001 06:23:11



Is it really necessary to use PHP and ODBC? PHP has a native postgresql
interface I believe...
 -John

Paulo Parola writes:
> 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

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


                               _____________________________
                               |        J. Goodleaf        |
                               |                           |
                           / ) | Technology Coordinator    |
                          / /  | FreeBSD Advocate          |
                         ( (   | email ==>                 |

                       (\\\\ \_/ /_________________________|
                        \       /
                         \    _/
                         /   /
                        /   /

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

 
 
 

RPMs for PHP accessing PostgreSQL via ODBC over RedHat

Post by Chri » Wed, 07 Mar 2001 07:37:25


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

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


 
 
 

RPMs for PHP accessing PostgreSQL via ODBC over RedHat

Post by Juan R. Cortabitart » Wed, 07 Mar 2001 08:23:22


im using different machines  to the web server and postgres server and i havent
got odbc drivers, it is not necesary. It works very good!!

---- Mensaje original ----
De:             Chris
Fecha:          Mon 3/5/01 19:38

Tema:   [GENERAL] Re: RPMs for PHP accessing PostgreSQL via ODBC over RedHat

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

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

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

 
 
 

RPMs for PHP accessing PostgreSQL via ODBC over RedHat

Post by Paulo Parol » Wed, 07 Mar 2001 12:48:15


The case is really code compatibility. I have benn using PHP to access mSQL,
MySQL and PostgreSQL natively for quite a while, *but* we need to port an
apllication currently running on NT written in PHP and accessing MS Access
using ODBC. We have already exported the database to PostgreSQL over RedHat
Linux and have even configured phpPgAdmin for administering it through the
Web. The thing is we want to keep our code using PHP ODBC functions to
access the database and not use the native calls.

I know I can build PHP from the source specifying options such
as --with-unixodbc or --with-iodbc, *but* I am currently on an install where
I only used RPMs to configure everything and was wondering how I could do
that without having to build everything from tarballs (./configure, make,
make install...) and keep RedHat RPM package facilities and perhaps enable
PHP to comunicate to PostgreSQL through ODBC just by installing some RPM (I
also won't have the need to have the database and the application at
different servers - they are actually residing at the same machine).

Any hints?

TIA,
Paulo

----- Original Message -----


Sent: Monday, March 05, 2001 8:02 PM
Subject: Re: [GENERAL] Re: RPMs for PHP accessing PostgreSQL via ODBC over

RedHat

> > > >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
> /usr/local/pgsql.

> ------------------------
> Chris Smith
> http://www.squiz.net

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

---------------------------(end of broadcast)---------------------------
TIP 2: you can get off all lists at once with the unregister command


 
 
 

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

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

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

2. Is Clipper Available for Mac?

3. RPMs for PHP accessing PostgreSQL via ODBC

4. upgrade to NT 4.0

5. RPMs for PHP accessing PostgreSQL via ODBC over

6. VB5 CRW5 and ACCESS2.0

7. Bugs in PostgreSQL v7.1 rpms for RedHat

8. Call for Papers: Testing Computer Software Conference (TCS2001)

9. postgresql using with IMP/Horde/PHP/Redhat

10. Connecting To Sqlserver Via PHP & Redhat

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

12. PHP+MySQL vs. PHP+PostgreSQL