Return to Snippet

Revision: 27186
at May 26, 2010 23:54 by metoikos


Initial Code
<?php
 
// header set
header("Content-Type: text/html; charset=utf-8");
 
function getInfo($URL){
  $getInfo= get_meta_tags($URL);
  return $getInfo;
}
 
$URL = "http://www.joyent.com";
 
$_getInfo = getInfo($URL);
 
     echo "$URL <p>";
     echo $_getInfo["author"]."<p>";   
     echo $_getInfo["keywords"]."<p>";    
     echo $_getInfo["description"]."<p>"; 
     echo $_getInfo["robots"]."<p>";
 
?>

Initial URL
http://snippets.symfony-project.org/snippet/409

Initial Description

                                

Initial Title
read meta tags of web site

Initial Tags
php

Initial Language
PHP