Want to implement PHP in Ubuntu to connect the Oracle database, downloaded and extracted instantclient, placed in the/opt/oracle/instantclient directory.
Use pecl install OCI8, compile successfully, automatically put
: This article describes how to enable oci8 for php connection to oracle (from the oracle official website). If you are interested in PHP tutorials, refer to it. Enabling the php OCI8 EXTENSION ON WINDOWS
The Instant Client binaries complement
PHP Tutorial Configuration Chinese Narration
Let's see what you see, php.ini.
[PHP]
;;;;;;;;;;;; WARNING;;;;;;;;;;;;; This is the default settings file for new PHP installations.; By default, PHP installs itself with a configuration suitable for;
Welcome to the Oracle community forum and interact with 2 million technical staff to enter Oracle10gInstantClient (Free Download). It is the easiest way to connect PHP to a remote Oracle database. It only requires three libraries to be installed.
Enabling the PHP OCI8 EXTENSION on WINDOWS
The Instant Client binaries complement PHP ' s pre-built binaries for Windows.
Install Apache by downloading from httpd-2.2.22-win32-x86-no_ssl.msi httpd.apache.org/download.cgi
Double Click the MSI
Load LoadModule fcgid_module modules/mod_fcgid.so
编辑php.ini:Date.timezone = Asia/shanghai; extension = Php_oci8_11g.dll this comment is deleted
Add Options Indexes followsymlinks execcgi in the Apache web directoryexeccgi...
To confirm whether the extension is configured, create a simple PHP script where the Web server can read it.
phpinfo();?>
Load the script to the browser using a URL similar to "http: // localhost: 8888//phpinfo. php. The browser page should contain
In linux, php uses php_oci8 extension to connect to the oracle Database. note: connecting php to oracle is not as simple as connecting to mysql. In most cases, it is not used, however, if you need to use php to access the oracle database, it will be
This article describes the installation method of PHP5.3 connecting Oracle client and PDO_OCI module. Share to everyone for your reference, as follows:PHP connection to Oracle database is not the best partner, but there is a real need for in-group
This example describes the installation method for PHP5.3 connecting Oracle clients and PDO_OCI modules. Share to everyone for your reference, specific as follows:
While PHP is not the best partner for connecting to Oracle databases, there is a
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.