note 106452 deleted from function.readfile by danbrown

From: Date: Tue, 15 Nov 2011 16:39:08 +0000
Subject: note 106452 deleted from function.readfile by danbrown
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-184487@lists.php.net to get a copy of this message
Note Submitter: Pranay ---- When downloading files with the readFile the browser page is pausing untill the download is finished. How can you avoid this? header('Content-Type: audio/x-ms-wma'); header('Content-Disposition: attachment; filename='.basename($file)); header('Content-Transfer-Encoding: binary'); header('Expires: 0'); header('Cache-Control: must-revalidate, post-check=0, pre-check=0'); header('Pragma: public'); header('Content-Length: ' . filesize($file)); ob_clean(); flush(); set_time_limit(0); readfile($file);

« previous php.notes (#184487) next »