Home  >  Article  >  php教程  >  PHP安装OCI8扩展

PHP安装OCI8扩展

WBOY
WBOYOriginal
2016-06-07 11:35:452518browse

PHP安装OCI8扩展
前瞻
安装oci8扩展之前,需要确定的是你的oracle数据库是否在本地的主机上,如是远端访问oracle的话,那我们必须先安装Oracle Instant Client
安装Oracle Instant Client
详情:http://www.appryan.com/2016/01/07/php-oci8
安装oci8
安装前请注意版本,目前2.1.0是php7编译的,若php版本在5.2~5.6之间,请选择2.0.10版本$ wget http://pecl.php.net/get/oci8-2.0.10.tgz<br> $ tar -xf oci8-2.0.10.tgz<br> $ cd oci8-2.0.10<br> $ phpize<br> $ ./configure --with-oci8=shared,instantclient,/usr/lib/oracle/12.1/client64/lib --with-php-config=/path/to/php/bin/php-config<br> $ make<br> $ make test<br> $ make install详情:http://www.appryan.com/2016/01/07/php-oci8

AD:真正免费,域名+虚机+企业邮箱=0元

Statement:
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