Login   Register  
PHP Classes
elePHPant
Icontem

File: example.php

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  Classes of Daniel Kushner  >  RemoteFileStats  >  example.php  >  Download  
File: example.php
Role: ???
Content type: text/plain
Description: An example use of this class
Class: RemoteFileStats
Retrieves statistics of a remote file (http)
Author: By
Last change:
Date: 2002-04-29 19:00
Size: 350 bytes
 

Contents

Class file image Download
<?php
include 'class.RemoteFileStats.inc';
$r = new RemoteFileStats('www.zend.com', 'images/logo.gif');
if($r->error) {
	echo $r->getErrorStr(), '(', $r->getErrorNo(), ')<br>';
} else {
	echo $r->getRemoteServer(), '<br>',
		 $r->getRemoteLastModified(), '<br>',
		 $r->getRemoteFileSize(), '<br>',
		 $r->getRemoteFileType(), '<br>';
}
?>