How to connect ORACLE8I with PHP4 under Linux_PHP Tutorial

WBOY
Release: 2016-07-13 10:53:39
Original
734 people have browsed it

1. Download and install Oracle 8i for linux.
Full installation, do not just install the client
Download location: hot download at chat.hn.cninfo.net/soft
2. Download PHP3 or PHP4 source code
Download location: www.php.net www.phpuser.com chat.hn.cninfo.net/soft
3. Configure PHP installation parameters
for php 4:
./configure --with -apxs=/usr/sbin/apxs
--prefix=/usr
--with-gd
--enable-versioning
--with-mysql=/usr
-- with-oracle=/usr/local/oracle/8i/u01/app/oracle/product/8.1.5
--with-oci8=/usr/local/oracle/8i/u01/app/oracle/product/ 8.1.5
--with-zlib
--with-dbase
--with-filepro
--with-config-file-path=/etc/httpd/conf
- -with-fdftk=no
--enable-debug=no
--enable-magic-quotes
--enable-debugger
--enable-bcmath
--enable-track -vars
--enable-safe-mode
--with-exec-dir=/usr/bin
--with-system-regex
--no-create
-- The no-recursion
--with-oracle option allows PHP to access Oracle 7.x or 8.x through ORA_ functions
--with-oci8 option allows PHP to use more and better oci8 functions
4. make
5. make install
6. cp ./php.ini-dist /wherever/your/conf/files/are/php.ini
Copy php.ini to the appropriate location
7. Modify httpd.conf
Modify the following line
LoadModule php4_module lib/apache/libphp4.so
Change to:
LoadModule php4_module /usr/lib/apache/libphp4.so
8. Restart APACHE
9. Test whether the installation of PHP4 is successful
Create a test.php3 with the content:
Access it in the browser to see if there is information about ORACLE and ORACLE8.
If so, congratulations!
10. Now start using ORACLE functions

www.bkjia.comtruehttp: //www.bkjia.com/PHPjc/632384.htmlTechArticle1. Download and install Oracle 8i for linux. Complete installation, do not just install the client. Download location: chat.hn .cninfo.net/soft hot download 2. Download PHP3 or PHP4 source code download location: www.php....
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template