環境: php
win7 64位, html
wampServer2.2, oracle
php5.5.20, 測試
oracle 11gR2 spa
材料: htm
ci.dll、oraociei11.dll、orannzsbb11.dll 都是從oralce client11gR2_x64中copy回來的。直接放到wamp->apapched->bin下; ci
而後wamp->php->php extensions,勾選php_oci8_11g; it
wampServer重啓全部服務; io
測試 cli
<?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");