Source Code

Get Meta Tag Information

  • anonymous
  • Dec 18' 13
  • PHP
  • 482
  • 54
  • United States

How Google describes a web in search results, by attaching a web information such as title, description etc. This source code is sample how google get information about the site.

check this out :

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "">
<html xmlns="">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Check Like a Google</title>



// this is source URL or webpage
$tags = get_meta_tags(''''); //this is sample web, you can different URL

//the data parsed like a array
$author=$tags[''author''];       // name
$description=$tags[''description''];  // pasarkode description
$keyword=$tags[''keywords''];     // keyword of pasarkode
<div style=" padding:5px; text-align:center; border:1px dotted #ccc">
<h2><?php echo $author; ?></h2>
<div style="text-align:center; padding:5px; border:1px dotted 3CC">
<?php echo $description;?>
<br />
<?php echo $keyword;?>

Run to browser to view the result

  • Tags : google, php, meta, tags
comments powered by Disqus

Related Code

Vulnerable Scan Web

Create Tags Using Explode


Tag Linked