2011-07-06 12 views

答えて

0

は、これらの機能を使用してみてください:

cURL

関数get_data($のURL)を { $ CH = curl_init()を使用し

  1. 。 $ timeout = 5; curl_setopt($ ch、CURLOPT_URL、$ url); curl_setopt($ ch、CURLOPT_RETURNTRANSFER、1); curl_setopt($ ch、CURLOPT_CONNECTTIMEOUT、$ timeout); $ data = curl_exec($ ch); curl_close($ ch); return $ data; }

    $ returned_content = get_data( 'http://api.gowalla.com/spots?lat=30.2697 & LNG = -97.7494 &半径= 50')。 file_get_contents

    $のURL = "http://api.gowalla.com/spots?lat=30.2697 & LNG = -97.7494 &半径= 50" を使用して

  2. 。 $ str = file_get_contents($ url);あなたも、このURLを助けることができる

http://nadeausoftware.com/articles/2007/06/php_tip_how_get_web_page_using_curl

関連する問題