2011-07-31 1 views
-2
내가이 일을 할 수

..Google에서 PHP로 이와 같이 쿼리 할 수있는 방법이 있습니까?

if ($content = file_get_contents("http://www.somerandomwebsite.com")) { 
echo $content; 
} 

을하지만 ..이 작업을 수행하는 방법은 무엇입니까?

if ($content = file_get_contents("site:somerandomwebsite.com")) { 
echo "Still Indexed!"; 
} 
else { 
echo "Google does not love you anymore"; 
} 
+0

것을을 위해 무엇을? 'http://google.com/?q= "some + query + -site : somrandomwebsite.com"을 말하지 않으시겠습니까? " – bluefoot

+2

wget은 친구입니다 – Bytemain

+0

file_get_contents를 사용하여 Google 결과 페이지를 가져올 수 있다고 생각하지 않습니다. curl()을 대신 사용해보십시오. –

답변