Jump to content

how to read torrent files


janim

Recommended Posts

hi all

i don't know if this exist in php or what

but if i have torrent file

how can i read the values like

name

seed

peer

..etc

i searched and found classes but i don't know how to read it

it's called BDecode if any one know it (it's in the attachment )

any suggestion please !

 

[attachment deleted by admin]

Link to comment
https://forums.phpfreaks.com/topic/78839-how-to-read-torrent-files/
Share on other sites

so ok

i tried to put this as first step

<?
$wholefile= file('the.torrent');
$seeds=trim($wholefile[1]);
echo $seeds;
?>

but this is what i got :

 

nIÎ{CºWM—…H÷]æã0è³}uf Ì@Ðbø_@îÁlá¡°Îïà‡ì¨5w:ÏŠ5Y"^nPE4÷©

 

how can i solve this encoding pb

 

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.