Login   Register  
PHP Classes
elePHPant
Icontem

File Info Cache

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

  Author  
Picture of kumar mcmillan
Name: kumar mcmillan <e-mail contact>
Packages: 7 Browse all classes by kumar mcmillan Browse all classes by
Country: United States United States - PHP jobs in United States
Age: 34
All time rank: 14416 in United States United States
Week rank: 425 Down42 in United States United States Down


  Detailed description   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 .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: 1167 users
All time rank: 2829
Week users: 0 users
Week rank: 2151 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  
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
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 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.