<pre><?php// Read and dump torrent filerequire_once 'BEncoder.inc.php';$filename = 'test.torrent';if (!is_readable ($filename)) die ('Cannot read ' . $filename);$encoder = new BEncoder ();$encoder->decode (file_get_contents ($filename));// Dump out decoded torrentvar_dump ($encoder->source);?></pre>