Meta tag grabber
Posted: Fri Nov 10, 2006 6:42 am
well i am trying to get meta tags from a given URL.. i came up with this code ..
<?php
$URL = 'http://www.yahoo.com';
$meta_tags = get_meta_tags($URL) or die("Could not fetch meta tags for $URL");
print_r($meta_tags);
?>
but this code always fails .. why ? any better idea?
<?php
$URL = 'http://www.yahoo.com';
$meta_tags = get_meta_tags($URL) or die("Could not fetch meta tags for $URL");
print_r($meta_tags);
?>
but this code always fails .. why ? any better idea?