Error in retrieving a blob from oracle DB.

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi all,

I use the following:
1) Win XP.
2) Oracle personal eddition 8.1.6.0.0.
3) IIS.
4) php-4.2.3-Win32 runs in cgi mode.

When I retrieve a blob from my DB, I got the following error:

Fatal error: Call to undefined function: load() in 
c:\inetpub\wwwroot\php1\ora52.php on line 6

-------------------------------------------
This is my code:

<?php
$conn = OCILogon("system","manager","naif.localhost");
$stmt = OCIParse($conn,"select binary_junk from images where 
img_id=7");
OCIExecute($stmt);
OCIFetchInto($stmt, $lob);
$content=load($lob);
OCIFreeStatement($stmt);
OCILogoff($conn);
header("Content-type: image/gif\n\n");
echo $content;
?>


-- 
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [PHP Users]     [Postgresql Discussion]     [Kernel Newbies]     [Postgresql]     [Yosemite News]

  Powered by Linux