Я пытаюсь получить результаты в codeigniter, но этот код ничего не выводит.
Есть ли у кого-нибудь решение этой проблемы в codeigniter.
Мне нужны подсказки.
$url = "https://ajax.googleapis.com/ajax/servic ... /web?v=1.0&"
. "q=Paris%20Hilton&userip=USERS-IP-ADDRESS";
// sendRequest
// note how referer is set manually
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, $url);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
curl_setopt($ch, CURLOPT_REFERER, /* Enter the URL of your site here */);
$body = curl_exec($ch);
curl_close($ch);
// now, process the JSON string
$json = json_decode($body);
// now have some fun with the results...
Подробнее здесь: https://stackoverflow.com/questions/232 ... nk-checker