Data hosted with ♥ by Pastebin.com - Download Raw - See Original
  1. <?php
  2. function grabbing($url){
  3.      $data = curl_init();
  4.      curl_setopt($data, CURLOPT_RETURNTRANSFER, 1);
  5.      curl_setopt($data, CURLOPT_URL, $url);
  6.      $output = curl_exec($data);
  7.      curl_close($data);
  8.      return $output;
  9. }
  10. $ambilhtml =  grabbing('http://h4nk.blogspot.com');
  11. $filter = explode('<h3', $ambilhtml);
  12. $filterakhir = explode('</h3>', $filter[1]);
  13. echo $filterakhir[1];
  14. // Source : http://h4nk.blogspot.com/2013/05/teknik-grabbing-dengan-curl-php.html
  15. ?>