Re: [PHP-DB] PHP + OCI en Debian

2006-04-27 Thread Christopher Jones

The original article on installing PHP with Oracle Instant Client
is at http://www.oracle.com/technology/pub/notes/technote_php_instant.html

Make sure you get the re-factored (i.e. much better) oci8 extension from
http://cvs.php.net/php-src/ext/oci8/
or
http://pecl.php.net/package/oci8

Chris

(Sorry for late reply - I'm catching up from being out of the office
for three weeks)

SJL wrote:

I was surfing in the web, and I found this:

http://www.akadia.com/services/ora_php_linux.html

Describe how to recompile php with oci8 librarys, in apache2 under
Linux or Solaris.

May be it will be usefull for someone else.

Thanks anyway,

Sebastian

On 3/23/06, SJL <[EMAIL PROTECTED]> wrote:

Ok, I think that you say to me that´s is not possible to compile
oci8.c separate...

When you say "compile with extra option --with-oci8", you mean something like:

make --with-oci8 makefile?

Sorry for the ignorance...

Thanks again,

Sebastian

On 3/22/06, Chris <[EMAIL PROTECTED]> wrote:

SJL wrote:

Someone install any time the Oracle Client to use the OCI interface to
connect a Oracle DB?

I'm working in Debian. I installed the Client of Oracle from a package
from the official page... but I don´t know how to configure php.ini to
make the OCI API works..

Now that you've installed Oracle Instant Client you need to get php to
recognise it's there (so it can create the oci8.so file).

I'm not sure if there is a package to do this or if you'll have to
compile php from source with the extra option:

--with-oci8

I suspect you'll have to compile php from source, you won't be able to
use a package to do this, but I could be wrong.

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






--
Christopher Jones, Oracle Corporation, Australia.
Email: [EMAIL PROTECTED]
Blog:  http://blogs.oracle.com/opal/

--
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP-DB] PHP + OCI en Debian

2006-03-23 Thread SJL
I was surfing in the web, and I found this:

http://www.akadia.com/services/ora_php_linux.html

Describe how to recompile php with oci8 librarys, in apache2 under
Linux or Solaris.

May be it will be usefull for someone else.

Thanks anyway,

Sebastian

On 3/23/06, SJL <[EMAIL PROTECTED]> wrote:
> Ok, I think that you say to me that´s is not possible to compile
> oci8.c separate...
>
> When you say "compile with extra option --with-oci8", you mean something like:
>
> make --with-oci8 makefile?
>
> Sorry for the ignorance...
>
> Thanks again,
>
> Sebastian
>
> On 3/22/06, Chris <[EMAIL PROTECTED]> wrote:
> > SJL wrote:
> > > Someone install any time the Oracle Client to use the OCI interface to
> > > connect a Oracle DB?
> > >
> > > I'm working in Debian. I installed the Client of Oracle from a package
> > > from the official page... but I don´t know how to configure php.ini to
> > > make the OCI API works..
> >
> > Now that you've installed Oracle Instant Client you need to get php to
> > recognise it's there (so it can create the oci8.so file).
> >
> > I'm not sure if there is a package to do this or if you'll have to
> > compile php from source with the extra option:
> >
> > --with-oci8
> >
> > I suspect you'll have to compile php from source, you won't be able to
> > use a package to do this, but I could be wrong.
> >
> > --
> > Postgresql & php tutorials
> > http://www.designmagick.com/
> >
>

--
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP-DB] PHP + OCI en Debian

2006-03-23 Thread SJL
Ok, I think that you say to me that´s is not possible to compile
oci8.c separate...

When you say "compile with extra option --with-oci8", you mean something like:

make --with-oci8 makefile?

Sorry for the ignorance...

Thanks again,

Sebastian

On 3/22/06, Chris <[EMAIL PROTECTED]> wrote:
> SJL wrote:
> > Someone install any time the Oracle Client to use the OCI interface to
> > connect a Oracle DB?
> >
> > I'm working in Debian. I installed the Client of Oracle from a package
> > from the official page... but I don´t know how to configure php.ini to
> > make the OCI API works..
>
> Now that you've installed Oracle Instant Client you need to get php to
> recognise it's there (so it can create the oci8.so file).
>
> I'm not sure if there is a package to do this or if you'll have to
> compile php from source with the extra option:
>
> --with-oci8
>
> I suspect you'll have to compile php from source, you won't be able to
> use a package to do this, but I could be wrong.
>
> --
> Postgresql & php tutorials
> http://www.designmagick.com/
>

--
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP-DB] PHP + OCI en Debian

2006-03-23 Thread chris smith
On 3/24/06, SJL <[EMAIL PROTECTED]> wrote:
> It´s true. I find the sources of oci8.so.
>
> But in my first try to compile it, It failed because the it have calls
> to php.h and info.h, so I try to move the sources files to the path
> where I have this files (taking care with the relative path in the
> source code), but it fail again with more than 100 compile errors...
>
> Somebody in this list have the "oci8.so" file ? (if it was compiled
> with Debian Distro in a 32 bits system is better, if not I would try
> it).

Make sure you have the php-dev or php-devel package installed. Those
files should be in that one.

Us compiling that file for you is no good, it might be for a different
file, different architecture and various other differences (ie it
probably won't work).

> On 3/22/06, Chris <[EMAIL PROTECTED]> wrote:
> > SJL wrote:
> > > Someone install any time the Oracle Client to use the OCI interface to
> > > connect a Oracle DB?
> > >
> > > I'm working in Debian. I installed the Client of Oracle from a package
> > > from the official page... but I don´t know how to configure php.ini to
> > > make the OCI API works..
> >
> > Now that you've installed Oracle Instant Client you need to get php to
> > recognise it's there (so it can create the oci8.so file).
> >
> > I'm not sure if there is a package to do this or if you'll have to
> > compile php from source with the extra option:
> >
> > --with-oci8
> >
> > I suspect you'll have to compile php from source, you won't be able to
> > use a package to do this, but I could be wrong.
> >
> > --
> > Postgresql & php tutorials
> > http://www.designmagick.com/
> >
>
> --
> PHP Database Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>


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

--
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP-DB] PHP + OCI en Debian

2006-03-23 Thread SJL
It´s true. I find the sources of oci8.so.

But in my first try to compile it, It failed because the it have calls
to php.h and info.h, so I try to move the sources files to the path
where I have this files (taking care with the relative path in the
source code), but it fail again with more than 100 compile errors...

Somebody in this list have the "oci8.so" file ? (if it was compiled
with Debian Distro in a 32 bits system is better, if not I would try
it).

Do someone try to compile this source in the paste?

Thanks a lot,

Sebastián

On 3/22/06, Chris <[EMAIL PROTECTED]> wrote:
> SJL wrote:
> > Someone install any time the Oracle Client to use the OCI interface to
> > connect a Oracle DB?
> >
> > I'm working in Debian. I installed the Client of Oracle from a package
> > from the official page... but I don´t know how to configure php.ini to
> > make the OCI API works..
>
> Now that you've installed Oracle Instant Client you need to get php to
> recognise it's there (so it can create the oci8.so file).
>
> I'm not sure if there is a package to do this or if you'll have to
> compile php from source with the extra option:
>
> --with-oci8
>
> I suspect you'll have to compile php from source, you won't be able to
> use a package to do this, but I could be wrong.
>
> --
> Postgresql & php tutorials
> http://www.designmagick.com/
>

--
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP-DB] PHP + OCI en Debian

2006-03-22 Thread Chris

SJL wrote:

Someone install any time the Oracle Client to use the OCI interface to
connect a Oracle DB?

I'm working in Debian. I installed the Client of Oracle from a package
from the official page... but I don´t know how to configure php.ini to
make the OCI API works..


Now that you've installed Oracle Instant Client you need to get php to 
recognise it's there (so it can create the oci8.so file).


I'm not sure if there is a package to do this or if you'll have to 
compile php from source with the extra option:


--with-oci8

I suspect you'll have to compile php from source, you won't be able to 
use a package to do this, but I could be wrong.


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

--
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP-DB] PHP + OCI en Debian

2006-03-22 Thread SJL
Is my first message in the list. So really I don´t know what language
use... In the end of this message I attach an Spanish version (Spanish
is my first language, so sorry for my possible mistakes).
--

Someone install any time the Oracle Client to use the OCI interface to
connect a Oracle DB?

I'm working in Debian. I installed the Client of Oracle from a package
from the official page... but I don´t know how to configure php.ini to
make the OCI API works..

Also, I have not "oci8.so". I read in php.net that I need this file...

So.. I have some components of OCI, but I just install de Oracle Client Basic..

Do I must install something else to make it works?

Please... I need to make this connection as soon as possible... And I
stagnant...

I have
PHP 4
Apache 2
Last Oracle Client Basic from the official page
Debian Distribution..


Thanks a lot,

Sebastián Lavena

--
Español:

Alguien alguna vez instalo el cliente de oracle para usar la interfaz
OCI para conectarse conta una Base de Datos Oracle, desde PHP?

La cosa es que estoy intentando hacerlo, y estoy teniendo infinitos
problemas... sumado a que es la primera vez que estoy trabajando con
Php, Oracle y la distro Debian.


Instale el Oracle Client para linux .

Lei que tengo que configurar el php.ini... estuve invetigando, y hay
que hacer una referencia a un tal "oci8.so", el cual NO lo tengo.

En fin.. estoy atascado con esto, y si alguien alguna vez hizo la
instalación.. me gustaría saber que pasos siguio...

Tengo PHP 4
Apache 2
Instale la última versión del Oracle Client que esta en la net...


Gracias de antemano,

Sebastián

--
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php