PHP Classes

File: test/testPhpClasses.php

Recommend this page to a friend!
  Classes of L   PhpClasses   test/testPhpClasses.php   Download  
File: test/testPhpClasses.php
Role: Example script
Content type: text/plain
Description: example
Class: PhpClasses
Extracs package information from phpclasses.org
Author: By
Last change: -
Date: 20 years ago
Size: 2,020 bytes
 

Contents

Class file image Download
<html>
<body>

<?php

////////////////////////////////////////////////////////////////////////
/**
*
* test for PhPclasses.php
*
* For the lastest version go to:
* http://www.phpclasses.org/browse.html/package/879.html
*
* @author Lennart Groetzbach <lennartg@web.de>
* @copyright Lennart Groetzbach <lennartg@web.de> - distributed under the LGPL
* @version 0.6 - 2003/07/07
* @package phpclasses
*/
////////////////////////////////////////////////////////////////
/*

    This library is free software; you can redistribute it and/or
    modify it under the terms of the GNU Lesser General Public
    License as published by the Free Software Foundation; either
    version 2.1 of the License, or (at your option) any later version.
   
    This library is distributed in the hope that it will be useful,
    but WITHOUT ANY WARRANTY; without even the implied warranty of
    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
    Lesser General Public License for more details.
   
    You should have received a copy of the GNU Lesser General Public
    License along with this library; if not, write to the Free Software
    Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA

*/
////////////////////////////////////////////////////////////////

$dir = dirname(__FILE__) ;
require_once
$dir . "/../PhpClasses.php";

$mirror = 'http://holliwell.mirrors.phpclasses.org';

$class = new PhpClasses($mirror, 879);
echo
$class->show();

if (
$class->id != -1) {
    echo
"\n<p>";
    echo
"Name: " . $class->name . "<br>\n";
    echo
"URL: " . $class->url . "<br>\n";
    echo
"ID: " . $class->id . "<br>\n";
    echo
"Average hits: " . $class->averageHits . "<br>\n";
    echo
"# of files : " . $class->fileCount . "<br>\n";
    echo
"Total hits: " . $class->totalHits . "<br>\n";
    echo
"All time rank: " . $class->allTime ."<br>\n";
    echo
"Week rank: " . $class->week ."<br>\n";
}
?>

</body>
</html>