Forum Moderators: coopster

Message Too Old, No Replies

oracle support in php

oracl + php

         

silentwisdom

9:05 am on Mar 18, 2004 (gmt 0)

10+ Year Member



How can i get oracle dbase support in php?

Must I recompile the whole source or can I donwload just a patch?

Where can I find these?

Th os I'm running is debian linux with kernel 2.4.25 and apache as webserver.
I've got php4 installed and working , the oracle client (instantcliet 10) is also installed but must be configured, so if anyone has any tips or good websites about this topics thanks in advance.

Kind regards

Smets Yoeri

[edited by: jatar_k at 6:29 pm (utc) on Mar. 19, 2004]
[edit reason] no sigs thanks [/edit]

carneddau

11:12 am on Mar 18, 2004 (gmt 0)

10+ Year Member



Hi,

From the PHP Manual:

"You have to compile PHP with the option --with-oracle[=DIR], where DIR defaults to your environment variable ORACLE_HOME."

A good place to start looking for info on using Oracle + PHP is the PHP manual pages:

[uk.php.net...]
[uk.php.net...]

Cheers

jatar_k

6:34 pm on Mar 19, 2004 (gmt 0)

WebmasterWorld Administrator 10+ Year Member



Welcome to WebmasterWorld silentwisdom,

go with the OCI 8 functions as

These functions allow you to access Oracle9, Oracle8 and Oracle7 databases. It uses the Oracle Call Interface (OCI).

This extension is more flexible than the old Oracle extension. It supports binding of global and local PHP variables to Oracle placeholders, has full LOB, FILE and ROWID support and allows you to use user-supplied define variables. You are recommended to use this extension instead of old Oracle extension where possible.

bcolflesh

7:02 pm on Mar 19, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



go with the OCI 8 functions as

Exactly, so assuming you are using apache, you'll have to recompile with oci8.

silentwisdom

10:52 pm on Mar 19, 2004 (gmt 0)

10+ Year Member



so I only have to recompile the php and nothing has to change to my apache config?

does anyone around here have experience with the instantclient form oracle?