473,804 Members | 3,602 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 2731
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...p hp 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.u k :: 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.u k :: 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...p hp 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 installinstruct ions.

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.u k :: 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
8502
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. 354 roberto@ausone:Build/php-4.3.2> ldd /opt/php4/bin/php libsablot.so.0 => /usr/local/lib/libsablot.so.0 libstdc++.so.5 => /usr/local/lib/libstdc++.so.5 libm.so.1 => /usr/lib/libm.so.1
7
11028
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
23463
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 Access-tables. I have tried this: conn.Provider = "Microsoft.Jet.OLEDB.4.0" conn.ConnectionString = "data source=" & datafil & ";Jet OLEDB:Database Password=" conn.Open datafil
3
1821
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
4796
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
2060
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 straight dope on the definitive method? Thanks Rudy
0
1196
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: Call to undefined function: ocilogon() in C:\Program Files\Apache Group\Apache2\htdocs\oracon.php on line 6. can anyone plz. help me?
1
3473
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 6? Any comments, any problems when compared to PHP 4 with Oracle 8i? cheers, Khalid
5
3346
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 employee table having 10 rows and 8 columns.Now i want to get the value for :column1,column5,column8 for the 10th(last row) no.of row. How to do this in oracle,php..can anybody help me?
0
9576
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10567
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10323
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
10310
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
10074
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
9138
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
5647
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
3809
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2983
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.