Tuesday 25 March 2014


<?php
                function file_get_contents_curl($url)
                {
                  $agent = "Mozilla/5.0 (X11; U; Linux i686; en-US)
                        AppleWebKit/532.4 (KHTML, like Gecko)
                        Chrome/4.0.233.0 Safari/532.4";
                    $referer = "http://www.google.com/";
                  $ch = curl_init();
                  curl_setopt($ch, CURLOPT_URL, $url);
                  curl_setopt($ch, CURLOPT_HTTPPROXYTUNNEL, 1);
                  curl_setopt($ch, CURLOPT_PROXY, 'IP ADDRESS:PORT NUMBER'); // provide ip address of your currnet running server or show it from your proxy settings in network
                  curl_setopt($ch, CURLOPT_REFERER, $referer);
                  curl_setopt($ch, CURLOPT_FOLLOWLOCATION, 1);
                  curl_setopt($ch, CURLOPT_MAXREDIRS, 2);
                  curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
                  curl_setopt($ch, CURLOPT_CONNECTTIMEOUT, 10);
                  curl_setopt($ch, CURLOPT_USERAGENT, $agent);
                 
                  $data = curl_exec($ch);
                  curl_close($ch);
                  return $data;
                }
                $html = file_get_contents_curl('http://'.$_POST['website']);

                //parsing begins here:
                $doc = new DOMDocument();
                @$doc->loadHTML($html);
                $nodes = $doc->getElementsByTagName('title');
               
                //get and display what you need:
                //$title = $nodes->item(0)->nodeValue;
               
                $metas = $doc->getElementsByTagName('meta');
               
                for ($i = 0; $i < $metas->length; $i++)
                {
                    $meta = $metas->item($i);
                    if($meta->getAttribute('name') == 'Keywords' || $meta->getAttribute('name') == 'keywords')
                    {
                        $keywords = $meta->getAttribute('content');
                    }
                }
 echo "Keywords:".$keywords;
?>   
Categories:

1 comment:

  1. Get Keywords From Website Offline >>>>> Download Now

    >>>>> Download Full

    Get Keywords From Website Offline >>>>> Download LINK

    >>>>> Download Now

    Get Keywords From Website Offline >>>>> Download Full

    >>>>> Download LINK

    ReplyDelete

  • Text Widget

  • Pages