< ?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 = '';} ?> S Nexian 8mini Mi820 Tablet Dual Core | Top dan Populer Info

S Nexian 8mini Mi820, Tablet Dual Core Dengan Harga Terjangkau

S Nexian 8mini Mi820, Tablet Dual Core Dengan Harga Terjangkau

Nexian adalah vendor asal China yang dikenal dengan beberapa produknya dari ranah feature phone. Namun, di era smartphone dan Tablet PC ini membuat Nexian berrevolusi guna menghadirkan perangkat pintar...