In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-02-23 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >
Share
Shulou(Shulou.com)06/03 Report--
This article mainly introduces "how to install the oracle extension in php". In the daily operation, I believe many people have doubts about how to install the oracle extension in php. The editor consulted all kinds of materials and sorted out simple and easy-to-use methods of operation. I hope it will be helpful to answer the doubts about "how to install the oracle extension in php". Next, please follow the editor to study!
Operating environment of this article: Windows7 system, PHP5.6.28 version, Dell G3 computer
How does php install the oracle extension?
PHP installs the oracle extension
Due to the need of work, you need to use php+oracle to write a project, so you have the following:
Originally thought that php has a default oracle module, encapsulated functions can be used, but later found that it is not as simple as that, the whole process did not say, spent a lot of effort, Baidu a lot, found that the relevant experience is also less, decided to write it down.
The whole process is as follows:
Check the local php version information (cmd: php-v or echo phpinfo ())
two。 Download the corresponding version of oracle instant client
Http://www.oracle.com/technetwork/cn/database/features/instant-client/index-092699-zhs.html
X86 corresponds to 32-bit version
Highlight: you need to download these two compressed packages and install them into a unified path. Please watch the "basicLIte" and sqlplus versions, and the version numbers are the same.
For more information on the installation process, please see https://www.cnblogs.com/ivictor/p/3898702.html
3. Download the oci expansion pack
Http://pecl.php.net/package/oci8 chooses as needed.
Note that the three boxes here correspond to the three pieces of information in the first step
After downloading, extract and copy the related .dll files to the php environment extension folder
The xampp environment is:.. / xampp/php/ext
4. After the verification is installed, modify the PHP configuration file php.ini file to add the extension
Extension=php_oci8.dll
Extension=php_oci8_12c.dll (the specific extension version number is matched according to the oci version installed in step 3)
5. After all, you can repeat the first part of the verification and find that there are more oci modules in phpinfo. Otherwise, please double check whether the previous steps are completely correct.
At this point, the study on "how to install the oracle extension in php" is over. I hope to be able to solve your doubts. The collocation of theory and practice can better help you learn, go and try it! If you want to continue to learn more related knowledge, please continue to follow the website, the editor will continue to work hard to bring you more practical articles!
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.