Get Site Information with PHP





-2
Date Submitted Fri. Aug. 27th, 2010 12:19 PM
Revision 1 of 1
Helper jackoder
Tags information | PHP | site
Comments 0 comments
Hello Php Coders,

We are together after a while. I'll share with you a special function that you can take a website's information with it. You can also check this url to take a look on denizli kız yurdu web pages.

I hope this codeblok will be useful for your projects.

Best codings.

<?php

// Header...
header("Content-Type: text/html; charset=utf-8");

// Function Starts Here...
function getInfo($URL){
  $getInfo= get_meta_tags($URL);
  return $getInfo;
}

// URL...
$URL = "http://www.bytemycode.com"

$_getInfo = getInfo($URL);
       
         // Print.
         echo "$URL <p>";
         echo $_getInfo ["author"]."<p>";   
         echo $_getInfo ["keywords"]."<p>";   
         echo $_getInfo ["description"]."<p>";
         echo $_getInfo ["robots"]."<p>";

?>
 

Jack ODERMAN

Comments

There are currently no comments for this snippet.

Voting

Votes Up


Newbie bxthuan