note 25758 added to function.fpassthru

From: Date: Fri, 04 Oct 2002 13:48:23 +0000
Subject: note 25758 added to function.fpassthru
Groups: php.notes 
Request: Send a blank email to php-notes+get-37668@lists.php.net to get a copy of this message
If your downloaded files are getting corrupted, one of the scripts included/required in your download script or page may have whitespace around the <?php ?> tags. A common enough problem, but most often recognized when header() fails, due to headers already being sent, but one worth mention here. This one bit me just recently with my download script. Somewhere along the way adding functionality to my website, I wound up with a space (not a blank line, which I usually spot right away, but a single space character) after the closing ?> tag in one of the require()'d files. Oddly enough, all the downloads seemed to work ok, but the files were corrupted: that space character wound up at the beginning of each file. -- http://www.php.net/manual/en/function.fpassthru.php http://master.php.net/manage/user-notes.php?action=edit+25758 http://master.php.net/manage/user-notes.php?action=delete+25758 http://master.php.net/manage/user-notes.php?action=reject+25758

« previous php.notes (#37668) next »