Home » Post Item » PHP and Oracle
PHP and Oracle
November 20, 2009PHP and Oracle - server side language and database management
First and foremost..
I just want to share this… which I actually used …
Assuming we’ve already installed the Oracle in our OS..
1. Download this AppServ
2. Edit the php.ini and then uncomment the ff:
extension=php_oci8.dll extension=php_oracle.dll and by this one..
we can already connect..
Connecting PHP and Oracle
//some codes here
global $conn;
$user = “username”;
$password = “password”;
$db=”database”;
$conn = oci_connect($user, $password, $db);
if (!$conn) {
$err = oci_error();
echo htmlentities($err[’message’]);
exit; }
//some codes here
So that’s it..
All comments are moderated. Your comments will not appear here unless approved by the blog owner. Thank you.





