Hmm, the way the PHP code works is it grabs each line from the file, and sends it to the user:
while(!feof($file)) { //While it is not the end of the file
print(fread($file, 1024*8)); //Print it to the user
flush();
if (connection_status()!=0) {
@fclose($file);
die();
}
}
So anything added to the end, or the beginning, is due to some editing of other code, make sure there is no spaces in the PHP document at the start, make sure it's "<?php.." not " <?php..".
As you have noticed, even a small space can make a big difference to the code.