Hi Vikas,
On Windows, edit your php.ini file and uncomment (remove the semi-colon) the following line:
extension = php_oci8.dll
Ensure that your "extension_dir" parameter (in php.ini) points to the location where the above extension file resides.
Using the OCI8 Extension Module -
<?php
if ($c = oci_connect("hr", "hr_password", "localhost/XE")) {
echo "Successfully connected to Oracle.";
oci_close($c);
} else {
$err = oci_error();
echo "Oracle Connect Error " . $err['text'];
}
?>
Note : You can just replace oci_connect(), instead of mysql_connect().
Apr 1, 2010