note 39421 deleted from function.readfile by tomsommer

From: Date: Mon, 09 Aug 2004 06:49:27 +0000
Subject: note 39421 deleted from function.readfile by tomsommer
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-74296@lists.php.net to get a copy of this message
Note Submitter: webdevrjones@yahoo.com ---- Beware using ob_start() in conjunction with header() when force downloading files! If you do use ob_start() WITHOUT calling ob_clean(), any data left in the header will be added to the beginning of whatever file is downloaded. To ensure this doesnt happen make sure you insert ob_clean() somewhere before the first header() in your download functions / scripts. I hope this saves someone the hours I spent looking for this answer ;)

« previous php.notes (#74296) next »