Son satıra } koyar mısın?
<?php
class google{
functiongetResult($kelime,$yer){
$url="http://ajax.googleapis.com/ajax/services/search/".$yer."&q=".urlencode($kelime)."&rsz=large&hl=tr";
$ch=curl_init();
curl_setopt($ch,CURLOPT_URL,$url);
curl_setopt($ch,CURLOPT_RETURNTRANSFER,1);
curl_setopt($ch,CURLOPT_REFERER,"http://www.ayazoglu.org/");
$cikti=curl_exec($ch);
curl_close($ch);
return$json=json_decode($cikti);
}
functiongetIndex($kelime){
$yer='web?v=1.0';
$json=$this->getResult($kelime,$yer);
return$json->responseData->cursor->resultCount;
}
functiongetImages($kelime){
$yer='images?v=1.0';
$json=$this->getResult($kelime,$yer);
return$json->responseData->cursor->estimatedResultCount;
}
functiongetBacklink($kelime){
$yer='web?v=1.0';
$json = $this->getResult($kelime,$yer);
return $json->responseData->cursor->resultCount;
}}
?>Bu şekildemi hocam ?