- Timestamp:
- 19.10.2005 18:49:52 (3 years ago)
- Location:
- trunk
- Files:
-
- 2 modified
-
File/Bittorrent/Decode.php (modified) (1 diff)
-
scrape.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/File/Bittorrent/Decode.php
r47 r48 407 407 function getStats() 408 408 { 409 // Check if we can access remote data 410 if (!ini_get('allow_url_fopen')) { 411 PEAR::raiseError('File_Bittorrent_Decode::getStats() - "allow_url_fopen" must be enabled.'); 412 return false; 413 } 414 // Query the scrape page 409 415 $packed_hash = pack('H*', $this->info_hash); 410 416 $scrape_url = preg_replace('/\/announce$/', '/scrape', $this->announce) . '?info_hash=' . urlencode($packed_hash); -
trunk/scrape.php
r42 r48 36 36 require_once 'Console/Getargs.php'; 37 37 38 // Set error handling 39 PEAR::setErrorHandling(PEAR_ERROR_PRINT); 40 38 41 // Get filename from command line 39 42 $args_config = array(