Recommend this page to a friend! |
Download .zip |
Info | View files (3) | Download .zip | Reputation | Support forum | Blog | Links |
Last Updated | Ratings | Unique User Downloads | Download Rankings | |||||
2009-04-02 (7 years ago) | Not enough user ratings | Total: 361 | All time: 6,515 This week: 890 |
Version | License | PHP version | Categories | |||
bencoding 1.0 | GNU General Publi... | 5.0 | PHP 5, Data types |
Description | Author | |||||||||||||
This class can be used to serialize and unserialize values in bencode format. |
|
bencoding - general This class is for encoding php types to the bencode syntax and decoding a bencode string to php types. You need this if you want to create/read a torrent file or create responses for a tracker. For more informations about bencode goto: http://bittorrent.org/beps/bep_0003.html I have developed this class for my framework psx <http://phpsx.org> but you can also use this outside. - description The following php/bencoding types are accosiated Type Bencode PHP ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ String 4:spam 'spam' Integer i3e 3 List l4:spam4:eggse array('spam', 'eggs') Dictionarie d3:cow3:moo4:spam4:eggse array('cow' => 'moo', 'spam' => 'eggs') |
Files |
File | Role | Description |
---|---|---|
bencoding.php | Class | main class |
example.php | Example | example script |
readme.txt | Doc. | documentation |
Version Control | Unique User Downloads | Download Rankings | |||||||||||||||
0% |
|
|
Applications that use this package |
If you know an application of this package, send a message to the author to add a link here.