Hy,when i try upload a torrent a got a blank page and an error but after torrent are added to tracker:
Code:
Warning: file_get_contents() [function.file-get-contents]: php_network_getaddresses: getaddrinfo failed: No such host is known. in C:\xampp\htdocs\include\functions_global.php on line 135
Warning: file_get_contents(Dupecheck Project neko netaisos mainоt..&opt=0) [function.file-get-contents]: failed to open stream: php_network_getaddresses: getaddrinfo failed: No such host is known. in C:\xampp\htdocs\include\functions_global.php on line 135
Warning: Cannot modify header information - headers already sent by (output started at C:\xampp\htdocs\include\functions_global.php:135) in C:\xampp\htdocs\takeupload.php on line 178
PHP Code:
Error table:
function getpretime($name, $type) {
$name = trim($name);
$name = substr($name , 0, 50);
$pre['regexp'] = '|<tr><td>(.*)<td>(.*)<td>(.*)|';
$pre['url'] = 'http://doopes.com/?cat=454647&lang=0&num=2&mode=0&from=&to=&exc=&inc='.$name.'&opt=0';
$pre['file'] = file_get_contents($pre['url']);
preg_match($pre['regexp'], $pre['file'], $pre['matches']);
$dtm = $pre['matches'][$type];
if(!empty($dtm)) {
list($y, $m, $d, $h, $min, $sec) = split('[: -]', $dtm);
$new_dtm = date('Y-m-d H:i:s', mktime($h + 1, $min, $sec, $m, $d, $y));
return $new_dtm;
} else {
return '';
}
}
And line 135:
Code:
$pre['file'] = file_get_contents($pre['url']);