Welcome, guest! Login / Register - Why register?
Psst.. new poll here.
[email protected] webmail now available. Want one? Go here.
Cannot use outlook/hotmail/live here to register as they blocking our mail servers. #microsoftdeez
Obey the Epel!

Paste

Pasted as PHP by bigeran ( 6 years ago )
<?php
 
 function sayfayaBaglan( $_URL ){ 
  $useragent = 'Mozilla/5.0 (Windows; U; Windows NT 5.1; tr-TR; rv:1.8.1.13) Gecko/20080311 Firefox/2.0.0.13';
  $referer = 'http://www.google.com/';
  $ch = curl_init();
  $zaman = 0;
  curl_setopt ($ch, CURLOPT_URL, $_URL); 
  curl_setopt ($ch, CURLOPT_RETURNTRANSFER, 1); 
  curl_setopt ($ch, CURLOPT_CONNECTTIMEOUT, $zaman); 
  curl_setopt ($ch, CURLOPT_REFERER, $referer); 
  curl_setopt ($ch, CURLOPT_USERAGENT, $useragent); 
  $rmx = curl_exec&#40;$ch&#41;; 
  curl_close($ch); 
  return $rmx; 
 } 

 $siteAdresi = sayfayaBaglan("https://www.google.com.tr/search?q=blog&oq=blog&sourceid=chrome&ie=UTF-8");
 
 preg_match_all('#<h3 class="r"><a href="(.*?)" q=') ){
  
   $key = str_replace(' q=', ' sa=', $key);
   
   $key = mb_substr($keyExp[0], 0, -5);
  
   $siteAdresi2 = sayfayaBaglan($key);
   
   if ( strstr($siteAdresi2, '>';
    
   }else{
    
    echo $key.' ----> değil<br>'; 
    
   }
   
  }
  
 }
 
?>

 

Revise this Paste

Children: 126896
Your Name: Code Language: