janim Posted November 25, 2007 Share Posted November 25, 2007 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] Quote Link to comment https://forums.phpfreaks.com/topic/78839-how-to-read-torrent-files/ Share on other sites More sharing options...
janim Posted November 25, 2007 Author Share Posted November 25, 2007 where are you guys ? ??? Quote Link to comment https://forums.phpfreaks.com/topic/78839-how-to-read-torrent-files/#findComment-399037 Share on other sites More sharing options...
janim Posted November 25, 2007 Author Share Posted November 25, 2007 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 Quote Link to comment https://forums.phpfreaks.com/topic/78839-how-to-read-torrent-files/#findComment-399043 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.