extracting information from .torrent files
Posted on 2004-04-10
I would like to use PHP to extract information from .torrent files, which are created according the BitTorrent protocol. Upon opening a .torrent file with a text editor, I obse4rved that the address of the relevent tracker is the first thing to appear in such files. The rest of the file's contents were in an encoding that could not be understood by viewing the file in a text editor. However, I'm pretty sure that .torrent files contain a list of the shared folder and file names, in addition to the hash code of each file. Is there a PHP library that could assist me in extracting these folder and file names? If not, how can a PHP script get access to the file names that are stored within a .torrent file? Thank you.