Display meta tags
This uses the get_meta_tags function to display the meta tags of a given page , if any exist that is . Here is the script .
<?php
$searchmeta = get_meta_tags("index.htm");
echo ($searchmeta["description"]);
echo ("<br>");
echo ($searchmeta["keywords"]);
?>
And here are the meta tags of my index page
Of course we are not limited to just our meta tags , lets have a look at our sister site at http://asp.myscripting.com using the following code
<?php
$searchmeta1 = get_meta_tags("http://asp.myscripting.com/index.asp");
echo ($searchmeta1["description"]);
echo ("<br>");
echo ($searchmeta1["keywords"]);
?>
Warning: get_meta_tags() [function.get-meta-tags]: Couldn't resolve host name in /home/beginne/public_html/searchmeta.php on line 206
Warning: get_meta_tags(http://asp.programmershelp.co.uk/index.php) [function.get-meta-tags]: failed to open stream: Connection timed out in /home/beginne/public_html/searchmeta.php on line 206