smartReadFile
smartReadFile copied to clipboard
Ensure the response is not GZIPed
Had reports of this not allowing seeking on Android, but it turned out to be that their response was being GZIPed. This was causing a few browsers to behave a little odd, but Android really did not like the data like that. .. I imagine other solutions wouldn't either, such as the Flash as already known.
Consider adding this header to smartReadFile() to ensure the output is not GZIPed:
header("Content-Encoding: none");
That way no one else will fall foul to this problem, where their server is automatically GZIPing all the output from PHP files.