hey can any help me i have a fuking problem.
this script don't give me error
but i can't read image.gif in IE.
thank you!
<?
require("config/connect.php");
function f_save_doc($nome, &$doc) {
if (!file_exists($nome)) {
$fp = fopen($nome, "w");
fputs($fp, $doc);
fclose($fp);
}
}
$sql = OCIParse($CONNECTION,"select w_imag_util from env.e21w where s_util=359");
OCIDefineByName($sql,"W_IMAG_UTIL",&$row);
if (!OCIExecute($sql,OCI_DEFAULT)) {
print "execution failed";
exit();
}
if (OCIFetch($sql)) {
f_save_doc("image.gif",$row);
};
OCILogoff($CONNECTION);
?>
this script don't give me error
but i can't read image.gif in IE.
thank you!
<?
require("config/connect.php");
function f_save_doc($nome, &$doc) {
if (!file_exists($nome)) {
$fp = fopen($nome, "w");
fputs($fp, $doc);
fclose($fp);
}
}
$sql = OCIParse($CONNECTION,"select w_imag_util from env.e21w where s_util=359");
OCIDefineByName($sql,"W_IMAG_UTIL",&$row);
if (!OCIExecute($sql,OCI_DEFAULT)) {
print "execution failed";
exit();
}
if (OCIFetch($sql)) {
f_save_doc("image.gif",$row);
};
OCILogoff($CONNECTION);
?>