Login   Register  
PHP Classes
elePHPant
Icontem

File Info Cache: Cache information about files to a database

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us

  Author Author  
Picture of kumar mcmillan
Name: kumar mcmillan <contact>
Classes: 7 packages by
Country: United States United States
Age: 35
All time rank: 14716 in United States United States
Week rank: 747 Down76 in United States United States Down


  Detailed description   Download Download .zip .tar.gz  
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.

  Classes of kumar mcmillan  >  File Info Cache  >  Download Download .zip .tar.gz  >  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
Version: -
PHP version: -
License: GNU Lesser General Public License (LGPL)
All time users: 1195 users
All time rank: 2910
Week users: 0 users
Week rank: 1518 Equal
 
  Groups   Rate classes User ratings   Applications   Files Files  

  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


  User ratings  
Not enough user ratings

  Applications that use this package  
No pages of applications that use this class were specified.
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
Accessible without login 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
Accessible without login Plain text file LICENSE Lic. class license

Download 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.