note 46428 rejected from ref.oci8 by nlopess
| From: | nlopess@php.net | Date: | Mon, 11 Oct 2004 14:15:21 +0000 |
| Subject: | note 46428 rejected from ref.oci8 by nlopess | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-78348@lists.php.net to get a copy of this message | ||
Note Submitter: d dot russo at inarcassa dot it
----
<?
$conn = OCILogon("PHPGENIUS","PHPGENIUS","(DESCRIPTION = (ADDRESS_LIST =
(ADDRESS = (PROTOCOL = TCP)(HOST = ruda)(PORT = 1521)))(CONNECT_DATA = (SERVER =
DEDICATED)(SERVICE_NAME = SVIL)))");
$stm = OCIParse($conn,"select sysdate from dual");
OCIExecute($stm);
OCIFetchInto($stm,$result);
print(implode($result) . "<br>");
$stm = OCIParse($conn,"select code from php_code");
$lobin = OCINewDescriptor($conn,OCI_D_LOB);
OCIDefineByName($stm, "CODE", &$lobin);
OCIExecute($stm);
OCIFetch($stm);
print($lobin->size());
if(!OCIWriteLobtoFile("D:\www\PHPGenius\test.php")){
print("Error");
}
?>
Why this code doesn't work?
Lob is not write on filesystem.
thanks