Просмотр полной версии : Вопрос по .torrent файлу(php)
Fantom3D
24.03.2010, 10:26
Каким образом можно с помощью php открыть .torrent файл, добавить туда несколько анонс адресов и закрыть файл? Так, чтобы при открытии уже обработаного файла в uTorrent появлялись старые адреса и новые, которые мы добавили. Помогите :confused: :confused:
http://www.phpclasses.org/browse/file/24765.html
Fantom3D
24.03.2010, 17:58
Там все очень запутано, та еще и не пашет... выложите, пожалуйста, готовый код.
У меня все работает
<?php
require_once 'Torrent.php';
$torrent = new Torrent('sample.torrent');
$torrent->announce('http://alternate-torrent.tracker/annonce');
$torrent->send();
?>
как я понел каждый анонс добавит можно
$torrent->announce('http://alternate-torrent.tracker/annonce');
$torrent->announce('http://rutracker.ru/annonce');
Fantom3D
24.03.2010, 19:58
Как-бэ ой) Я все с одного файла делал, не прочитал коммент)) Спасибо.
Fantom3D
24.03.2010, 22:44
Nelzone
Кстате не пашет, в инструкции написано, что такими 2 способами должно работать :)
$torrent->announce(array('http://torrent.tracker/annonce', 'http://alternate-torrent.tracker/annonce')); // set tracker(s), it also works with a 'one tracker' array...
$torrent->announce(array(array('http://torrent.tracker/annonce', 'http://alternate-torrent.tracker/annonce'), 'http://another-torrent.tracker/annonce')); // set tiered trackers
vBulletin® v3.8.14, Copyright ©2000-2026, vBulletin Solutions, Inc. Перевод: zCarot