level09 on 05/13/11
Last Edited at 05/13/11 01:13am
$userAgent = 'Googlebot/2.1 (http://www.googlebot.com/bot.html)'; $curl = curl_init($url); curl_setopt($curl, CURLOPT_USERAGENT, $userAgent); curl_setopt($curl, CURLOPT_AUTOREFERER, true); curl_setopt($curl, CURLOPT_FOLLOWLOCATION, true); curl_setopt($curl, CURLOPT_RETURNTRANSFER, 1 ); curl_setopt($curl, CURLOPT_TIMEOUT, 2 ); $html = curl_exec( $curl ); curl_close( $curl);
Report this snippet Tweet
Comment:
You need to login to post a comment.