# server - port - instance
$conn = oci_connect('huypv', 'super*secret', '//192.168.1.113:1521/bidv');
if (!$conn) {
$e = oci_error();
trigger_error(htmlentities($e['message'], ENT_QUOTES), E_USER_ERROR);
}
$stid = oci_parse($conn, 'SELECT SYSDATE from dual');
oci_execute($stid);
oci_fetch_all($stid, $res);
var_dump($res);
oci_close($conn);
Title:
PHP access to Oracle Server
Description:
# server - port - instance $conn = oci_connect('huypv', 'super*secret', '//192.168.1.113:1521/bidv'); if (!$conn) ...
...
Rating:
4