Login   Register  
PHP Classes
elePHPant
Icontem

Class: File Info Cache

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  Classes of kumar mcmillan  >  File Info Cache  >  Download .tar.gz .zip  >  Support forum Support forum  >  Blog Blog  >  RSS 1.0 feed RSS 2.0 feed Latest changes  
Name: File Info Cache
Base name: file-info-cache
Description: Cache information about files to a database
Related classes: , , , , , , ,
Version: -
PHP version: -
License: GNU Lesser General Public License (LGPL)
All time users: 1117 users
All time rank: 2735
Week users: 0 users
Week rank: 2590
Picture of kumar mcmillan
Author: kumar mcmillan <e-mail contact>
Packages: 7 Browse this author's classes Browse this author's classes
Country: United States United States - PHP jobs in United States
Age: 32
All time rank: 13816 in United States United States
Week rank: 994 Down110 in United States United States Down


  Detailed description  
This class browses a directory and recursively caches file information to a database. Once the file information is in a database you can access it easily and efficiently. This script is only intended to run from the shell, from a crontab or similar process; I don't recommend changing permissions on your files for the webserver to access them!

The class was designed to cache information about mp3 files so a weighted playlist system could be constructed for Shoutcast (see example file ./cache-sc-server.php).

To store further information about a file, you may wish to create a new table in the database. If so, please send me your additions and I will incorporate them into the package.

You need the ADODB database tool to run the class (http://php.weblogs.com/ADODB) and you need the AudioFile class (http://www.phpclasses.org/browse.html/package/482.html) to cache mp3 files. Currently the class has only been tested with MySQL but should support any database supported by ADODB. Please see the class comments for installation, testing/stats, and license.

 

  Groups  
Group folder image Databases Database management, accessing and searching View top rated classes
Group folder image Files and Folders Listing, accessing and manipulating files and folders View top rated classes
Group folder image Cache Classes for managing cached pages View top rated classes
Group folder image Audio Voice and music data generation and manipulation View top rated classes

  Rate classes User ratings   Applications   Files Files  

  User ratings  
There are not enough user ratings to display for this class.

  Applications that use this class  
No application links were specified for this class.
Add link image If you know an application of this package, send a message to the author to add a link here.
  Files folder image Files  
File Role Description
Plain text file cache-sc-server.php Example example script to cache mp3 files
Plain text file file-info-cache.class.php Class class source
Plain text file LICENSE Lic. class license

Download all files: file-info-cache.tar.gz file-info-cache.zip
NOTICE: if you are using a download manager program like 'GetRight', please Login before trying to download this archive.