1. Copy the Php_oci8.dll to the System32 directory, and the test is invalid.
2. Add the PHP installation path to the environment variable path, using Phpinfo () to view, restart the computer will not become the new path settings, but unfortunately, after some toss, still invalid.
3.oarcle Client Lite issue, I replaced with the server -side installation using the same disk installed client, checked, invalid.
After querying a large amount of data, the following methods were obtained to solve the problem:
In order for PHP to be able to operate the Oracle database , it is not enough to simply open the php_oci8.dll extension of the php.ini file, because PHP's extension is also called Oracle's underlying API to work (included in the Oci.dll file). Therefore, you must also install the client library of Oracle.
to the URL
http://www.oracle.com/technology/software/tech/oci/instantclient/htdocs/winsoft.html Download Instantclient-basic-win32. Note that it is not instantclient-basiclite-win32 because Basiclite only supports English and Western European character sets. Instantclient-basic-win32 is currently version 11.1.0.7.0, which is the download file instantclient-basic-win32-11.1.0.7.0.zip.
Unzip the package, for example, into the D:\instantclient_11_1 folder, add this path to the system variable path, preferably added at the beginning of the path. Add a tns_admin variable inside the system variable, and the value is set to C:\instantclient_11_1. Finally, the php.ini inside the Extension=php_oci8.dll open, in order to support PDO, you can also open Extension=php_pdo_oci.dll and Extension=php_pdo_ Oci8.dll, remove the previous comment semicolon.