<?php
$fn = "http://localhost/index.php";
$fh = fopen($fn, "r");
$Contents .= fread($fh, 50000); //filesize($fn));
fclose($fh);
echo nl2br(htmlspecialchars($Contents));
?>
This code seems to stop reading the file at random points, sometimes it returns a little bit of the page, sometimes a bit more.
The most i see is 8769b getting displayed.
5964b and 3610b are 2 others. These 3 are the only sizes that get displayed, no others.
Does anyone know whats going on? The page it is getting is a static HTML page, so nothings wrong there.
Server caching prob perhaps? timeout?
Thanks!
K.
[EDIT] - filesize is commented as it didnt work, it said it couldnt get the stats or something... any help on that would be cool too!