tags:

views:

99

answers:

2

How can I read / decode a .torrent file with PHP?

Do I need any specific library to decode such files or is it something simpler?

+2  A: 

Take a look at torrentflux. Its an open source bit torrent client. The code in /html/BDecode.php deals with decoding .torrent files.

Ofri Raviv
+1  A: 

For a specific library to decode .torrent files, also see File_Bittorrent2, from the PEAR library.

Alister Bulman