extract meta tags from file or url as array

php has a built in function that can be used to extract the meta tags from a page url into an array.


just pass it a url, if you call this file meta.php. usage: meta.php?url=http://my-url.com/


if(!isset($_GET['url'])) {
	echo "Missing URL";
$url = $_GET['url'];
$tags = get_meta_tags($url);

Other Items in php
Page Views

This page has been viewed 288 times.

Search Code
Search Code by entering your search text above.

This is my test area for webdev. I keep a collection of code snippits here, mostly for my reference. Also if i find a good site, i usually add it here.


Random Quote
There is no way to happiness. Happiness is the way.