Replaced manual loop with readfile method

With some larger files the script timed out during the download. This is an attempt to resolve the problem by using the [readfile](http://www.php.net/readfile) method.