环境:
win7 64位,
wampServer2.2,
php5.5.20,
oracle 11gR2
材料:
ci.dll、oraociei11.dll、orannzsbb11.dll 都是从oralce client11gR2_x64中copy回来的。直接放到wamp->apapched->bin下;
然后wamp->php->php extensions,勾选php_oci8_11g;
wampServer重启所有服务;
测试
<?php
//echo phpinfo();
$conn=oci_connect(‘orcl‘,‘orcl‘,‘192.168.0.200:1521/orcl‘);
if(!$conn){
$e=oci_error();
print htmlentities($e[‘message‘]);
exit;
}
print htmlentities("success");
时间: 2024-12-10 04:40:40