irwan

Get Site Information with PHP

Nov 15th, 2011
112
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.48 KB | None | 0 0
  1. <?php
  2.  
  3. // Header...
  4. header("Content-Type: text/html; charset=utf-8");
  5.  
  6. // FUNCTION Starts Here
  7. FUNCTION getInfo($URL){
  8.   $getInfo= get_meta_tags($URL);
  9.   RETURN $getInfo;
  10. }
  11.  
  12. // URL
  13. $URL = "http://www.xxxxxxx.com";
  14.  
  15. $_getInfo = getInfo($URL);
  16.  
  17.          // PRINT.
  18.          echo "$URL <p>";
  19.          echo $_getInfo ["author"]."<p>";
  20.          echo $_getInfo ["keywords"]."<p>";
  21.          echo $_getInfo ["description"]."<p>";
  22.          echo $_getInfo ["robots"]."<p>";
  23. ?>
  24.  
Advertisement
Add Comment
Please, Sign In to add comment