yazarcizer adlı üyeden alıntı:
mesajı görüntüle
echo "şçğıüİÜĞŞÇ"; yazıp denermisin ?
Sorun devam ediyormu diye ?
25
●3.502
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>Google Tamamlama Çekme</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
</head>
<body>
<form method="post" action="googlechecker.php">
<input type="text" name="veri" placeholder="oto tamamla" />
<input type="submit" name="gonder" value="Gönder" />
</form>
<?php
$veri=$_POST['veri'];
function file_get_contents_utf8($fn) {
$content = file_get_contents($fn);
return mb_convert_encoding($content, 'UTF-8',
mb_detect_encoding($content, 'UTF-8, ISO-8859-9', true));
}
if($_POST['veri']){
$data=file_get_contents_utf8('http://clients1.google.com/complete/search?output=toolbar&hl=tr&q='.$veri.'');
preg_match_all('/\<suggestion data\=\"(.*?)\"\/\>/',$data,$get);
print_r($get[1]);
}
?>
</body>
</html>
Teşekkür ederim...
$query = 'türkçe test çözümlü';
$etkilemeyecekler = array('+','%21','%22','%23','%24','%25','%26','%27','%28','%29','%2a','%2c','%2d','%2e','%2f','%3a','%3b','%3c','%3d','%3e','%3f','%40','%5b','%5c','%5d','%5e','%5f','%60','%7b','%7c','%7d','%7e');
$etkileyecekler = array(' ','!','"','#','$','%','&','\'','(',')','*',',','-','.','/',':',';','<','=','>','?','@','[','\\',']','^','_','`','{','|','}','~');
$query = str_replace($etkileyecekler, $etkilemeyecekler, $query); 
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>Google Tamamlama Çekme</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
</head>
<body>
<form method="post" action="googlechecker.php">
<input type="text" name="veri" placeholder="oto tamamla" />
<input type="submit" name="gonder" value="Gönder" />
</form>
<?php
error_reporting(0);
$veri=$_POST['veri'];
function file_get_contents_utf8($fn) {
$content = file_get_contents($fn);
return mb_convert_encoding($content, 'UTF-8',
mb_detect_encoding($content, 'UTF-8, ISO-8859-9', true));
}
if($_POST['veri']){
$data=file_get_contents_utf8('http://clients1.google.com/complete/search?output=toolbar&hl=tr&q='.$veri.'');
preg_match_all('/\<suggestion data\=\"(.*?)\"\/\>/',$data,$get);
print_r($get[1]);
}
?>
</body>
</html>al hocam
hata önemli mi anlamadığım için "hata verdi" yazdım
teşekkürler kod için..