函数名:oci_new_descriptor()
适用版本:PHP 5, PHP 7
函数描述:oci_new_descriptor()函数用于创建一个新的LOB(Large Object)或FILE(BFILE)描述符。
语法:oci_new_descriptor(resource $connection, int $type = OCI_D_FILE)
参数:
返回值:成功时返回一个描述符资源,失败时返回FALSE。
示例:
$conn = oci_connect('username', 'password', 'localhost/XE');
$lob = oci_new_descriptor($conn, OCI_D_LOB);
if (!$lob) {
$e = oci_error($conn);
trigger_error(htmlentities($e['message'], ENT_QUOTES), E_USER_ERROR);
}
$conn = oci_connect('username', 'password', 'localhost/XE');
$file = oci_new_descriptor($conn);
if (!$file) {
$e = oci_error($conn);
trigger_error(htmlentities($e['message'], ENT_QUOTES), E_USER_ERROR);
}
注意事项: