Source for file example_mktorrent.php
Documentation is available at example_mktorrent.php
require_once 'File/Bittorrent/MakeTorrent.php';
PEAR ::setErrorHandling (PEAR_ERROR_PRINT );
$MakeTorrent->setAnnounce ('http://www.example.org');
$MakeTorrent->setComment ('Hello World!');
// Set the piece length (in KB)
$MakeTorrent->setPieceLength (256 );
$metainfo = $MakeTorrent->buildTorrent ();
// Then put this into a file, instead of echoing it normally...
Documentation generated on Mon, 11 Mar 2019 14:57:21 -0400 by phpDocumentor 1.4.4. PEAR Logo Copyright © PHP Group 2004.
|