Login   Register  
PHP Classes
elePHPant
Icontem

File: testURLHelper.php

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  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: 11 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>