Parses a .torrent file and returns it as a PHP array.
Example .torrent attached. You can use the form in the example
script torrent_reader.php
to try one of your own.
See example output here. This is the first part:
Array
(
[announce] => http://tracker.torrentleech.org:2710/a/566942624e49fa1e0df4de7113afe46a/announce
[created by] => mktorrent 1.0
[creation date] => 1314672785
[info] => Array
(
[files] => Array
(
[0] => Array
(
[length] => 15000000
[path] => Array
(
[0] => CD1
[1] => exvid-htwww-cd1.r00
)
)
[1] => Array
(
[length] => 15000000
[path] => Array
(
[0] => CD1
[1] => exvid-htwww-cd1.r01
)
)
[2] => Array
(
[length] => 15000000
[path] => Array
(
[0] => CD1
[1] => exvid-htwww-cd1.r02
)
)
[3] => Array
(
[length] => 15000000
[path] => Array
(
[0] => CD1
[1] => exvid-htwww-cd1.r03
)
)
[4] => Array
(
[length] => 15000000
[path] => Array
(
[0] => CD1
[1] => exvid-htwww-cd1.r04
)
)