<html>
<body>
<?php
require "URLHelper.php";
$url = 'http://www.phpclasses.org';
echo "HTTP Status for: "$url"<br>";
echo "The title is: "" . URLHelper::getTitle($url) . ""<br>";
echo "<br>";
echo nl2br(URLHelper::getHTTPHeader($url));
?>
</body>
</html>
|