<?PHP
ob_start();
echo "<body bgcolor=\"#D5EAFF\">";
echo "<font face=\"Verdana\" size=\"2\" color=\"#0066CC\">";
$message="Fala ti što si downloadovo ovaj fajl!";
$n=strlen($message);
for ($i=0; $i<$n; $i++)
{
echo $message[$i];
ob_flush();
flush();
usleep(70000);
}
ob_flush();
flush();
sleep(1);
ob_end_flush();
/*Header ('Content-Description: File Transfer');
Header ('Content-Type: application/force-download');
Header ('Content-Length: '.filesize($download_file));
Header ('Content-Disposition: attachment; filename='.basename($selected_file.zip));
readfile($download_file);*/
echo "</font>";
echo "<script language='javascript'> history.go(-1); </script>";
?>
Imam problem, neće da downloaduje fajl nakon one poruke. Javlja da ne može probijeniti header. Da li je moguće downloadovati fajl posllije onog ispisa?
[Ovu poruku je menjao borovac dana 26.08.2005. u 16:17 GMT+1]