Quantcast
Viewing all articles
Browse latest Browse all 16

PHP Download Script with Resume option

A while ago I wrote an article about the common pitfalls of handling file downloads in PHP. One thing I did not realize at that time is that in most cases developers don't have the time to write such a script and they'll use whatever they can find, even if it has flaws. Because of this, I decided to write a download script and release it free for everyone with a BSD License. It's not a class, just a script that accepts a "file" parameter via GET or POST and outputs the file. For security purposes any paths are stripped and replaced with a path in the script (the folder containing the downloadable file(s) should be protected against direct access).

The post PHP Download Script with Resume option appeared first on Media Division.


Viewing all articles
Browse latest Browse all 16

Trending Articles