PHP Classes

File: testURLHelper.php

Recommend this page to a friend!
  Classes of L   URLHelper   testURLHelper.php   Download  
File: testURLHelper.php
Role: Example script
Content type: text/plain
Description: example
Class: URLHelper
Class for accessing URLs and the HTTP data
Author: By
Last change: static method calls
Date: 21 years ago
Size: 297 bytes
 

Contents

Class file image Download
<html>
<body>
<?php

require "URLHelper.php";
   
$url = 'http://www.phpclasses.org';

echo
"HTTP Status for: &quot;$url&quot;<br>";
echo
"The title is: &quot;" . URLHelper::getTitle($url) . "&quot;<br>";
echo
"<br>";
echo
nl2br(URLHelper::getHTTPHeader($url));
?>
</body>
</html>