ob_end_flush();
echo "Downloading...";
/* download code goes here */
sleep(3) //simulate a download
flush();
echo "Download complete";
Why does this work? Dunno but for some reason ob_end_flush(); before a flush made it work.
Random ramblings about life the multiverse and everything
ob_end_flush();
echo "Downloading...";
/* download code goes here */
sleep(3) //simulate a download
flush();
echo "Download complete";
0 comments:
Post a Comment