Login   Register  
PHP Classes
elePHPant
Icontem

Class Path Locator: Locate and include a file from a path list

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  Info   View files View files (2)   DownloadInstall with Composer Download .zip   Reputation   Support forum   Blog    
Last Updated Ratings Unique User Downloads Download Rankings  
2004-03-09 (10 years ago) RSS 2.0 feedStarStarStar 44%Total: 1,961 All time: 1,888 This week: 1,503Up
Version License Categories  
libpathlocator 1.0Free for non-commercial...Utilities and Tools, Files and Folders, L...
Description Author  

This class is meant to resolve path of a [PHP class library] file to be included like in Java.

You can specify the directory paths of several [class] libraries that are available and accessible on the system.

This class can check whether a file with given name exists in any of the specified directory paths. If the file path is found it loads its file via PHP include or require statements. It's also possible only to receive the path of a given file. This can be used to load e.g. Template-files, or config-files, etc.

It can also prevent that the same file be loaded more than once.

Picture of Cornelius Bolten
Name: Cornelius Bolten <contact>
Classes: 8 packages by
Country: Germany Germany
Age: 31
All time rank: 23711 in Germany Germany
Week rank: 932 Down39 in Germany Germany Down
Innovation award
Innovation award
Nominee: 2x

  Files folder image Files  
File Role Description
Accessible without login Plain text file example.PathLocator.php Example example-script, read carefully
Plain text file lib.PathLocator.php Class main lib-class

 Version Control Unique User Downloads Download Rankings  
 0%Total:1,961All time:1,888
 This week:0This week:1,503Up
 User Ratings  
 
 All time
Utility:60%StarStarStarStar
Consistency:70%StarStarStarStar
Documentation:-
Examples:70%StarStarStarStar
Tests:-
Videos:-
Overall:44%StarStarStar
Rank:2011