<?php
echo "hello";
$db='(DESCRIPTION = ADDRESS = (PROTOCOL = TCP)(HOST = some_ip)(PORT = some_port))(CONNECT_DATA = (SID = xxx.yyy)))';
$conn=oci_connect('user','pass','$db');
if (!$conn){
echo "No connection";
}
else{
echo "Connected!";
}
?>
I got the above code. It displays hello but anything else, and I don't know why, because even if the connection failed, it should display "No connection", shouldn't it?