PHP Classes

File: example.php

Recommend this page to a friend!
  Classes of Karel Klima  >  Tracker  >  example.php  >  Download  
File: example.php
Role: Example script
Content type: text/plain
Description: Example of usage
Class: Tracker
Locate and index auto-loaded classes
Author: By
Last change:
Date: 15 years ago
Size: 615 bytes


Class file image Download

require_once dirname(__FILE__) .'/tracker.php';

Tracker::$root_folder = dirname(__FILE__) . "/"; // root of search folders
Tracker::$search_folders = array("classes","modules","plugins"); // look for classes in these folders
Tracker::$denied_folders = array("some_system_folder","some_plugin_folder"); // this can be an empty array

Tracker::load(); // scans the filesystem or loadss classes' location

// __autoload is called, should automatically include file fith class FindMe();
// if the class is not found, then it does nothing and then PHP triggers a "class not found" error
$test = new FindMe();


For more information send a message to info at phpclasses dot org.