Errorisme Mobile Blog
Announcement
Hello World!!!
27 Aug 2011 under General by eMobileBlog
Curl get contents yg aku pasang di mp3 portal:
Code:
function err_curl($url, $ua = 'Mozilla/5.0 (Windows NT 5.1; rv:2.0.1) Gecko/20100101 Firefox/4.0.1', $referer = 'http://www.google.com/') {
if (function_exists('curl_exec')) {
$curl = curl_init();

$header[0] = "Accept: text/xml,application/xml,application/xhtml+xml,";
$header[0] .= "text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5";
$header[] = "Cache-Control: max-age=0";
$header[] = "Connection: keep-alive";
$header[] = "Keep-Alive: 300";
$header[] = "Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7";
$header[] = "Accept-Language: en-us,en;q=0.5";
$header[] = "Pragma: "; // browsers keep this blank.

curl_setopt($curl, CURLOPT_URL, $url);
curl_setopt($curl, CURLOPT_USERAGENT, $ua);
curl_setopt($curl, CURLOPT_HTTPHEADER, $header);
curl_setopt($curl, CURLOPT_REFERER, $referer);
curl_setopt($curl, CURLOPT_ENCODING, 'gzip,deflate');
curl_setopt($curl, CURLOPT_AUTOREFERER, true);
curl_setopt($curl, CURLOPT_RETURNTRANSFER, 1);
curl_setopt($curl, CURLOPT_TIMEOUT, 10);

$content = curl_exec($curl); // execute the curl command
curl_close($curl); // close the connection
}
else {
ini_set('user_agent', $ua);
$html = file_get_contents($url);
}

return $content; // and finally, return $html
}
27 Aug 2011 under General by eMobileBlog
[View: 1/332] [Comment: 0/2]
Code:function get_real_ua()
{
//GET REAL DEVICE USER AGENT
$keyname_ua_arr = array('HTTP_X_DE [...] Read More
26 Aug 2011 under General by eMobileBlog
[View: 1/330] [Comment: 0/4]
fsock_get_contents by er.o, agak primitiv..
Code:function fsock_get_contents($url, $ua = 'Mozilla/5 [...] Read More
13 Jan 2011 under General by eMobileBlog
[View: 0/1060] [Comment: 0/10]
iseng2 aja nih....

yang gagal pasang dengan script kemaren, ni q bikinin file js dan css external [...] Read More
31 Dec 2010 under General by Admin
[View: 0/909] [Comment: 0/2]
Welcome to my MobileBlog.
Script eMobileBlog v3.2 beta by Errorisme Corp.
Original script created [...] Read More
[1]
2 Online | Today: 0 visit | Total: 3196 visit
Powered by eMobileBlog