Skip to content
Advertisement

Is there a good implementation of partial file downloading in PHP?

I’m writing a PHP script that allows the user to download a file. Basically the idea is to prevent the file being downloaded more than X times, since it is paid content, and the link should not be spread around.

Since the files will be pretty large, it should be good to implement resuming. I’ve read the standard, but it’s pretty long and allows for some flexibility. Since I need to get it done quickly, I’d prefer a stable, tested implementation of this feature.

Can anyone point me to such a a script?

Advertisement

Answer

Seems that I found what I needed myself. So that other may benefit from this, here is the link: http://www.coneural.org/florian/papers/04_byteserving.php

And just in case the original page stops to work (the script is pretty old already), here is a copy of it:

JavaScript
User contributions licensed under: CC BY-SA
3 People found this is helpful
Advertisement