472,794 Members | 1,899 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 472,794 software developers and data experts.

how to access oracle from php4

Hi,
Can anyone tell me how to access oracle from php. Im using CentOS 4
with php4 already installed. From what I found after a bit of
googling...php will have to be recompiled with oracle support. This
seems to be a lot tedious.
Anyone with an advic on how to use oracle with php.

Im using CentOS4
php4
oracle10g

Thanks
Danish

Jan 10 '07 #1
3 2649
On 10 Jan 2007 08:34:57 -0800, "danish" <me***********@gmail.comwrote:
>Can anyone tell me how to access oracle from php. Im using CentOS 4
with php4 already installed. From what I found after a bit of
googling...php will have to be recompiled with oracle support. This
seems to be a lot tedious.
Anyone with an advic on how to use oracle with php.

Im using CentOS4
php4
oracle10g
You don't have to recompile PHP, as you can build the oci8 extension (which
connects PHP to Oracle) as a shared module.

In fact, for PHP 4 that's probably the better course of action, as you can use
the newer version of the extension, which is better than the one bundled in
PHP4.

You can get it from http://pecl.php.net/package/oci8 , which comes with
install instructions.

The functions it provides are documented at http://php.net/oci8

--
Andy Hassall :: an**@andyh.co.uk :: http://www.andyh.co.uk
http://www.andyhsoftware.co.uk/space :: disk and FTP usage analysis tool
Jan 10 '07 #2

Andy Hassall wrote:
On 10 Jan 2007 08:34:57 -0800, "danish" <me***********@gmail.comwrote:
Can anyone tell me how to access oracle from php. Im using CentOS 4
with php4 already installed. From what I found after a bit of
googling...php will have to be recompiled with oracle support. This
seems to be a lot tedious.
Anyone with an advic on how to use oracle with php.

Im using CentOS4
php4
oracle10g

You don't have to recompile PHP, as you can build the oci8 extension (which
connects PHP to Oracle) as a shared module.

In fact, for PHP 4 that's probably the better course of action, as you can use
the newer version of the extension, which is better than the one bundled in
PHP4.

You can get it from http://pecl.php.net/package/oci8 , which comes with
install instructions.

The functions it provides are documented at http://php.net/oci8

--
Andy Hassall :: an**@andyh.co.uk :: http://www.andyh.co.uk
http://www.andyhsoftware.co.uk/space :: disk and FTP usage analysis tool
thanks I downloaded the software oci8-1.2.0...but now how do I compile
and build it..there is no configure file..The php4 that I have is a
binary package...

Thanks
Danish

Jan 11 '07 #3
danish wrote:
>
Andy Hassall wrote:
>On 10 Jan 2007 08:34:57 -0800, "danish" <me***********@gmail.comwrote:
>Can anyone tell me how to access oracle from php. Im using CentOS 4
with php4 already installed. From what I found after a bit of
googling...php will have to be recompiled with oracle support. This
seems to be a lot tedious.
Anyone with an advic on how to use oracle with php.

Im using CentOS4
php4
oracle10g

You don't have to recompile PHP, as you can build the oci8 extension
(which
connects PHP to Oracle) as a shared module.
Reread what Andy wrote.
'shared module'.
You do not have to recompile PHP.
Just uncomment the relevant part in php.ini and make sure you place the so
or dll in the right directory.
And of course as Andy indicated, read the installinstructions.

Regards,
Erwin Moller

>>
In fact, for PHP 4 that's probably the better course of action, as you
can use
the newer version of the extension, which is better than the one bundled
in PHP4.

You can get it from http://pecl.php.net/package/oci8 , which comes with
install instructions.

The functions it provides are documented at http://php.net/oci8

--
Andy Hassall :: an**@andyh.co.uk :: http://www.andyh.co.uk
http://www.andyhsoftware.co.uk/space :: disk and FTP usage analysis tool

thanks I downloaded the software oci8-1.2.0...but now how do I compile
and build it..there is no configure file..The php4 that I have is a
binary package...

Thanks
Danish
Jan 11 '07 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: Ollivier Robert | last post by:
Hello, I'm trying to link PHP with Oracle 9.2.0/OCI8 with gcc 3.2.3 on a Solaris9 system. The link succeeds but everytime I try to run php, I get a SEGV from inside the libcnltsh.so library. ...
7
by: Geoff Muldoon | last post by:
Hi all, Help please. Environment: Unix (Tru64) / Apache / PHP4.0.6 / Oracle8i Establish connection to Oracle: for ($I=0; $I<$max_attempts; $I++) {
3
by: Jon Ole Hedne | last post by:
My Access 2002-application need to work with tables from both Oracle and Access. To solve this, I want to run some querys on three views in Oracle and import the results into temporary...
3
by: Keith E. Sauvant | last post by:
A behaviour we don't understand: +++ $user = 'xxx'; $password = 'xxx'; $database = 'xxx.xxx'; $query = 'SELECT 1 FROM DUAL'; $link = OCIlogon($user, $password, $database);
0
by: Yannick | last post by:
Hi, I'm Julien from France, We have recently install a new Web Server for my company The server is composed : - Linux RedHat RHEL4 U4 - Httpd-2.0.52-27.ent - Oracle Database 10.2.0.1
4
by: Radix | last post by:
I've been scouring for information about this for quite some time now and so far I'm at a loss to the proper/correct way to compile PHP 5.x with Oracle 9i for Sparc Solaris. Does anyone have the...
0
by: boss1 | last post by:
hi all, i am having a problem with php & oracle connection.i m using oracle 8i & php4.3.6 version on Win2000 professional. when i run the connection script.i find a fetal error. Fatal error:...
1
by: K. A. | last post by:
I'm in the process of upgrading my Oracle 8i to either Oracle 10g or even go straigt to Oracle 11g to use along with my PHP pages. My question is: is anyone using Oracle 11g with PHP 5 or even PHP...
5
by: boss1 | last post by:
hi all' i m using php4 and oracle 9idb for my web-application. i have got a problem .that is i just want to know how to get selected column value for the last row in table. suppose i have...
3
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 2 August 2023 starting at 18:00 UK time (6PM UTC+1) and finishing at about 19:15 (7.15PM) The start time is equivalent to 19:00 (7PM) in Central...
0
by: erikbower65 | last post by:
Using CodiumAI's pr-agent is simple and powerful. Follow these steps: 1. Install CodiumAI CLI: Ensure Node.js is installed, then run 'npm install -g codiumai' in the terminal. 2. Connect to...
0
by: kcodez | last post by:
As a H5 game development enthusiast, I recently wrote a very interesting little game - Toy Claw ((http://claw.kjeek.com/))。Here I will summarize and share the development experience here, and hope it...
2
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Sept 2023 starting at 18:00 UK time (6PM UTC+1) and finishing at about 19:15 (7.15PM) The start time is equivalent to 19:00 (7PM) in Central...
0
by: Taofi | last post by:
I try to insert a new record but the error message says the number of query names and destination fields are not the same This are my field names ID, Budgeted, Actual, Status and Differences ...
5
by: DJRhino | last post by:
Private Sub CboDrawingID_BeforeUpdate(Cancel As Integer) If = 310029923 Or 310030138 Or 310030152 Or 310030346 Or 310030348 Or _ 310030356 Or 310030359 Or 310030362 Or...
0
by: lllomh | last post by:
Define the method first this.state = { buttonBackgroundColor: 'green', isBlinking: false, // A new status is added to identify whether the button is blinking or not } autoStart=()=>{
0
by: lllomh | last post by:
How does React native implement an English player?
2
by: DJRhino | last post by:
Was curious if anyone else was having this same issue or not.... I was just Up/Down graded to windows 11 and now my access combo boxes are not acting right. With win 10 I could start typing...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.