토런트 파일을 다운로드 할 수있는 사용자 정의 PHP 응용 프로그램을 작성하고 있습니다. 파일은 서버에있는 및 사용자의 요청에 따라, 나는 파일을 다음과 같이 제공 :PHP를 통해 토런트 파일 다운로드, 유효하지 않은 Bencoding
if(file_exists($torrent_file)) {
header("Content-type: application/x-bittorrent");
header('Content-Length: ' . filesize($torrent_file));
header('Content-Disposition: attachment; filename="' . basename($torrent_file).'"');
readfile($torrent_file);
}
을하지만 다운로드 나는 다음과 같은 오류 볼이 uTorrent에 파일을 추가 할 때 :
을 로드 할 수 없음 - 토렌트가 유효한 Bencoding이 아닙니다.
아무런 성공없이 정확한 문제를 해결하기 위해 검색했습니다.
PHPTracker와 같은 라이브러리를 사용하지 않는 이유는 무엇입니까? (http://php-tracker.org/, https://bmain.net/d/2-create-torrent-files-with- php-and-phptracker) – ali
안녕하세요, 모든 토렌트 파일이 제 3 자 응용 프로그램에 의해 서버에 업로드되고 내가 할 일은 다운로드 방법을 제공하는 것입니다. – VDonchev