how to show the "File download" box instead of pri
Posted: Fri May 23, 2003 1:19 pm
I have successfully used the following code to print a text file from an Oracle blob field to the screen. How should I change this code so that the "File download" window will pop up instead.
-----------code to print a text file out-----------------
<?php
$conn = OCILogon("scott", "tiger", "Daluko");
$stmt = OCIParse($conn, "select file_content from lexicon_files where id=2");
OCIExecute($stmt);
OCIFetchInto($stmt, &$blob);
echo $blob[0]->load();
OCIFreeStatement($stmt);
OCILogoff($conn);
?>
-----------code to print a text file out-----------------
<?php
$conn = OCILogon("scott", "tiger", "Daluko");
$stmt = OCIParse($conn, "select file_content from lexicon_files where id=2");
OCIExecute($stmt);
OCIFetchInto($stmt, &$blob);
echo $blob[0]->load();
OCIFreeStatement($stmt);
OCILogoff($conn);
?>