質問編集履歴
3
説明追加
title
CHANGED
File without changes
|
body
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
ネットでgoogle suggest対策とかの記事がたくさんありますが例えば下記のサンプルですが自分の静的サイトに入れたい時はどこにどうすればいいですか?
|
2
|
+
やりたいことはyahooやgoogle検索で恵比寿 バーと入れたら、 Bar exampleを表示させたいです
|
2
3
|
|
3
4
|
|
4
|
-
|
5
5
|
```
|
6
6
|
$url = "http://www.google.com/complete/search?hl=ja&output=toolbar&q=".urlencode("恵比寿バー");
|
7
7
|
$toplevel = simplexml_load_file($url);
|
2
修正
title
CHANGED
File without changes
|
body
CHANGED
@@ -2,7 +2,8 @@
|
|
2
2
|
|
3
3
|
|
4
4
|
|
5
|
+
```
|
5
|
-
|
6
|
+
$url = "http://www.google.com/complete/search?hl=ja&output=toolbar&q=".urlencode("恵比寿バー");
|
6
7
|
$toplevel = simplexml_load_file($url);
|
7
8
|
foreach ($toplevel->CompleteSuggestion as $completeSuggestion) {
|
8
9
|
$suggest_word_array[] = $completeSuggestion->suggestion->attributes()->data;
|
1
変更する
title
CHANGED
File without changes
|
body
CHANGED
File without changes
|