web 2.0

How to use PHP & Oracle (oci8) Connect to Database

How to use PHP & Oracle (oci8) Connect to Database This is the guideline/example scripts how to use PHP connect to Oracle database

ShotDev Focus:
- PHP & Oracle database.

Example

php_connect_oracle.php


<html>
<head>
<title>ShotDev.Com Tutorial</title>
</head>
<body>
<?
$objConnect = oci_connect("myuser","mypassword","TCDB");
if($objConnect)
{
echo "Oracle Server Connected";
}
else
{
echo "Can not connect to Oracle Server";
}
?>
</body>
</html>

Create a php file and save to path root-path/myphp/

Run
http://localhost/myphp/php_connect_oracle.php

Screenshot

PHP & Oracle (oci8) Connect to Database
.
.
.

Download this script.
Download

1 Star2 Stars3 Stars4 Stars5 Stars6 Stars7 Stars8 Stars9 Stars10 Stars (1 votes, average: 1.00 out of 10)
Loading ... Loading ...

Leave a Reply

You must be logged in to post a comment.