<?php
/*
Nama Pemalam: domain']))?$_GET['domain']:$_POST['domain'];
jika(kosong($domain)) gema 'Nama domain pertanyaan tidak boleh kosong';
$count = baiduSL ( $domain);
if(!isset($count)) showjson(array('code'=>200502,'msg '=>'Soalan gagal, sila cuba lagi!'));
jika (!$count) $count = 0;
$result=array(
'code'=>1,
'domain '=>$domain,
'data'=>$count
);
print_r(json_encode($result));
unset($domain,$result,$ch);
fungsi baiduSL ($domain) {
$baidu='https://www.com/s?ie=utf-8&tn=baidu&wd=site%3A'.$domain;
$bdsite=BD_curl($baidu );
$bdsite = str_replace(array("rn", "r", "n", ' '), '', $bdsite
jika (!$count) preg_match('/Bilangan yang berkaitan keputusan yang ditemui ialah mengenai (.*?)/i',$bdsite,$count);
$baiduSL=strip_tags($count[1]); }
fungsi BD_curl($url){
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, $url);
curl_setopt($ch, CURLOPT_USERAGENT.; iPhone0 (MozillaPhone/5 iPhone OS 9_1 seperti Mac OS X) AppleWebKit/601.1.46 (KHTML, seperti Gecko) Versi/9.0 Mudah Alih/13B143 Safari/601.1");
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
$ret($ curl
$ret ch); curl_close($ch); pulangkan $ret;}?>
Maaf atas masalah semua