note 46428 added to ref.oci8
| From: | d dot russo at inarcassa dot it | Date: | Mon, 11 Oct 2004 08:57:04 +0000 |
| Subject: | note 46428 added to ref.oci8 | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-78325@lists.php.net to get a copy of this message | ||
<?
$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
----
Manual Page -- http://www.php.net/manual/en/ref.oci8.php
Edit -- http://master.php.net/manage/user-notes.php?action=edit+46428
Delete -- http://master.php.net/manage/user-notes.php?action=delete+46428&report=yes
Reject -- http://master.php.net/manage/user-notes.php?action=reject+46428&report=yes
Search -- http://master.php.net/manage/user-notes.php