< ?php define('GOOGLE_API_KEY', ''); function pete_curl_get($url, $params){$post_params = array(); foreach ($params as $key => &$val) { if (is_array($val)) $val = implode(',', $val); $post_params[] = $key.'='.urlencode($val); } $post_string = implode('&', $post_params); $fullurl = $url."?".$post_string; $ch = curl_init();curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, FALSE); curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, FALSE);curl_setopt($ch, CURLOPT_URL, $fullurl); curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); curl_setopt($ch, CURLOPT_USERAGENT, 'Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7) Gecko/20040608'); $result = curl_exec($ch);curl_close($ch); return $result; } function perform_google_web_search($termstring) { $start = 0; $result = array(); while ($start<10) { $searchurl = 'http://ajax.googleapis.com/ajax/services/search/web?v=1.0'; $searchurl .= '&key='.'ABCDEFG'; //ganti ABCDEFG dengan kode api Google http://code.google.com/apis/ajaxsearch/signup.html $searchurl .= '&start='.$start; $searchurl .= '&rsz=large'; //kamu bisa pake "small" untuk menampilkan hanya 4 (maksimal) pencarian $searchurl .= '&filter=1'; //kamu bisa ganti "filter=1" untuk mem-filter hasil pencarian $searchurl .= '&q='.urlencode($termstring); $response = pete_curl_get($searchurl, array()); $responseobject = json_decode($response, true); if (count($responseobject['responseData']['results'])==0) break; $allresponseresults = $responseobject['responseData']['results']; foreach ($allresponseresults as $responseresult) { $result[] = array( 'url' => $responseresult['url'], 'title' => $responseresult['title'], 'abstract' => $responseresult['content'], ); } $start += 8; } return $result; } if (isset($_REQUEST['s'])) { $termstring = urldecode($_REQUEST['s']); } else { $termstring = '';} ?> Mito A220 Smartphone 5 Inchi Seharga Rp | Top dan Populer Info

Mito A220 Smartphone 5 Inchi Seharga Rp. 700 Ribu-an

Mito A220 Smartphone 5 Inchi Seharga Rp. 700 Ribu-an

Mito adalah sebuah vendor lokal yang selalu memberikan sesuatu hal yang baru dalam beberapa gadget yang mereka hadirkan. Setelah beberapa waktu lalu menghadirkan A300 yang dibintangi Afgan dalam iklannya....