URL Summary (4.2 KiB, 134 hits)

I needed a way to extract additional content and details about any given website that a User might add to PickyList. So I sat down and wrote what is now dubbed URLSummary that takes a URL and outputs an XML document.

This class is written in PHP 5, and I cannot confirm or deny that it will work with any other version. Feel free to do anything you want with it – all I ask is that you consider leaving a comment letting me know if it was beneficial for you and your product.

Usage of URLSummary.php

<?
	require('URLSummary.php');
	// Get a URL paramater $url = $_GET['url'];
	$url = 'http://icorbin.com/resume';

	// Create the URLSummary Class
	$urlsummary  = new URLSummary();
	$urlsummaryxml =  $urlsummary->get($url,"xml");
	// Output the Results to the browser as XML
	header("Content-Type:application/xml");
	echo $urlsummaryxml->asXML();
?>


A few notes
Currently URLSummary currently does not Cache any of the calls.

  URL Summary (4.2 KiB, 134 hits)