Interesting script.
A while ago (around Feb) I wrote a script to do something similar. I
wrote it because I'm mirroring a few fairly large files (>200MB each and
growing weekly).
You can see a demo at http://osm.bandnet.org/planet/
The script itself is available at
http://svn.bandnet.org/labs/magdex/magdex.php (rename to index.php to use)
Basically my script reads the directory listing of the directory it is
stored in, ignores certain files ('.', '..', itself and its hash index
files). For each file it checks for the index file and if it's up to
date reads the hash and returns the magnet link. If the index file is
old or doesn't exist the file is hashed after the listing has been
returned and the result stored.
It also provides two links with the magnet: one to the file itself
direct from Apache or other webserver, the other to a script that stores
the IP and port of the downloader and returns IP+port combinations of
people who have downloaded the file previously.
I hope it'll be of use to someone to make more useful. Let me know if
you make use of it as I'd love to know where it's being used.
Cheers,
Tom.
mcrosoft2001 wrote:
>
> maybe somebody is interested in my latest script for the P2P community.
>
> HTTP2P2P - it allows you to host files on a regular webserver and make
> them available via magnet-links.
>
> it is a simple directory lister with hash-link generation. nothing more.
>
> checkitout here:
>
> http://www.http2p2p.dr.ag <http://www.http2p2p.dr.ag>
> or
> http://pipecheckphp.sourceforge.net/http2p2p/
> <http://pipecheckphp.sourceforge.net/http2p2p/>
>
>