"Phpstudy" installs the Oracle client and connects

Source: Internet
Author: User
Tags phpinfo

Reference connection: 77508518

PHPSTUDY2016 is a 32-bit version of PHPSTUDY2014 is a 64-bit edition before using Phpstudy to make sure your version 1 first opens the extension extension=php_oci8_12c.dll //Here 12c refers to the Oracle client is a 12.x version, do not make 11.x or 10.x, otherwise no effect!!! extension=php_pdo_oci.dllphp5.6 the following should open Extension=php_oci8_11g.dll view this time to open phpinfo (); If you do not see your extension successfully turned on, Because you didn't install the Oracle client Oracle client http://www.oracle.com/technetwork/database/features/instant-client/ Index-097480.html Choose the version you want to download phpstudy2016 is download 32-bit version phpstudy2014 is download 64-bit version if click Accept License Agreement select start Download Connaught hint not registered  To register their own account password has been registered is to download the Extract files to the C disk for example, 64 for the version Instantclient-basic-windows.x64-12.2.0.1.0.zip unzip the location you want to put, such as C disk modify the system variable path such as: Add C:\instantclient_12_2 to the front of path, restart Appache and then view phpinfo.php See this note the OCI extension is loaded successfully under local test PHP even Oracle In the root directory www to establish the test.php file write code: <?php$conn= oci_connect (' username ', ' password ', ' IP: Port number/server name or Sid '); if ($conn) {echo "Connection Oracle succeeded!  "; Exit;} else{echo "Connection to Oracle failed! "; exit;}?" >

Effect:

So for PHP to open the Oracle extension is problematic, there are several points to note.

1.php.ini Open the extension, the best 2 are turned on, so you do not need to tube client version

2. Installing the Oracle client, not installing a separate extension is not possible

3. Note the number of bits for the client and PHP, 32 with 32,64 64 (regardless of the number of bits in win)

4. Note Run the Oracle installer as an administrator (if the form is installed, the decompression form is ignored)

5. If you are using a phpstudy environment, run as an administrator phpstudy

"Phpstudy" installs the Oracle client and connects

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.