本文实例讲述了php读取torrent种子文件内容的方法。分享给大家供大家参考,具体如下:
<?php
/**
* Class xBEncoder
* Author: Angus.Fenying
* Version: 0.1
* Date: 2014-06-03
*
* This class helps stringify or parse BENC
* codes.
*
* All Copyrights 2007 - 2014 Fenying Studio Reserved.
*/
class xBEncoder
{
const READY = 0;
co