PHP Classes

WaldScan: Scan directories for files with certain extensions

Recommend this page to a friend!
  Info   View files View files (81)   DownloadInstall with Composer Download .zip   Reputation   Support forum   Blog    
Ratings Unique User Downloads Download Rankings
Not enough user ratingsTotal: 374 This week: 1All time: 6,769 This week: 560Up
Version License PHP version Categories
dirscan 1.3Custom (specified...5.3PHP 5, Files and Folders
Description 

Author

This class can scan directories for files with certain file name extensions.

It can traverse a given directory recursively and extract the list of files that have one of a list of file name extensions.

The class can return the list of matched files and directories that it found as arrays values or strings with the list JSON encoded.

It can also serve files that were found for download.

Picture of Karl Holz
  Performance   Level  
Name: Karl Holz <contact>
Classes: 14 packages by
Country: Canada Canada
Age: 43
All time rank: 44918 in Canada Canada
Week rank: 109 Up3 in Canada Canada Up
Innovation award
Innovation award
Nominee: 9x

Details

-------------------------------------------------------------------------------- WaldScan -------------------------------------------------------------------------------- @author Karl Holz @link https://github.com/salamcast @licence LICENCE.WaldScan.txt -------------------------------------------------------------------------------- * Wald is the German word for forest/woods, since this is dealing with multiple * directory trees it seem appropriate, it's also the plural form of my surname * Holz -------------------------------------------------------------------------------- ================================================================================ WaldScan is a PHP 5 class that will recursively scan the given directory for a list of selected file types. This can scan your directories for media files, documents and/or images. You are required to pass a valid full path directory or the DOCUMENT_ROOT will be used for the root if nothing is passed. A list of default banned directories has been set to avoid potentially dangerous results for you and I; You don't want someone to get access to your /etc, /var or /private directories do you? These directories can be cleared if you need to use those directories for an PHP CLI or PHP-GTK utility. This class has many uses for any web page that serves files over http/https, a CLI program that does batch processing of files or in cron jobs for caching file data for faster access. getID3 is a great project that is required to work with this class for accessing meta data in many media file formats; caching the id3 data, etc to an SQLite3 database to greatly improve the performance of your application. This class can be a little slow scanning many files stored on a network share (over wifi), just keep this in mind if you want to use network shares on a live website with many users and no cron Job to do the caching. look at the WaldScan.tester.php to get a better idea of how this class functions. when you open it up, edit the $test variable to a directory on your server or share mounted on your server and edit the $ext variable to a filetype list that you want to view

  Files folder image Files  
File Role Description
Files folder imageincludes (1 directory)
Plain text file dirscan.class.php Class WaldScan class
Accessible without login Plain text file LICENCE.WaldScan.txt Lic. Apache 2 Licence
Accessible without login Plain text file README Data Auxiliary data
Accessible without login Plain text file WaldScan.tester.php Example WaldScan Tester

  Files folder image Files  /  includes  
File Role Description
Files folder imagegetid3 (77 files)

  Files folder image Files  /  includes  /  getid3  
File Role Description
  Accessible without login Plain text file changelog.txt Data getID3 dependency
  Accessible without login Plain text file dependencies.txt Data getID3 dependency
  Accessible without login Plain text file extension.cache.dbm.php Aux. getID3 dependency
  Accessible without login Plain text file extension.cache.mysql.php Aux. getID3 dependency
  Accessible without login Plain text file extension.cache.sqlite3.php Aux. getID3 dependency
  Accessible without login Plain text file getid3.dirscan.php Aux. getID3 dependency
  Accessible without login Plain text file getid3.lib.php Aux. getID3 dependency
  Accessible without login Plain text file getid3.php Aux. getID3 dependency
  Accessible without login Plain text file license.commercial.txt Lic. getID3 dependency
  Accessible without login Plain text file license.txt Lic. getID3 dependency
  Accessible without login Plain text file module.archive.gzip.php Aux. getID3 dependency
  Accessible without login Plain text file module.archive.rar.php Aux. getID3 dependency
  Accessible without login Plain text file module.archive.szip.php Aux. getID3 dependency
  Accessible without login Plain text file module.archive.tar.php Aux. getID3 dependency
  Accessible without login Plain text file module.archive.zip.php Aux. getID3 dependency
  Accessible without login Plain text file module.audio-video.asf.php Aux. getID3 dependency
  Accessible without login Plain text file module.audio-video.bink.php Aux. getID3 dependency
  Accessible without login Plain text file module.audio-video.flv.php Aux. getID3 dependency
  Accessible without login Plain text file module.audio-video.matroska.php Aux. getID3 dependency
  Accessible without login Plain text file module.audio-video.mpeg.php Aux. getID3 dependency
  Accessible without login Plain text file module.audio-video.nsv.php Aux. getID3 dependency
  Accessible without login Plain text file module.audio-video.real.php Aux. getID3 dependency
  Accessible without login Plain text file module.audio-video.riff.php Aux. getID3 dependency
  Accessible without login Plain text file module.audio-video.swf.php Aux. getID3 dependency
  Accessible without login Plain text file module.audio.aa.php Aux. getID3 dependency
  Accessible without login Plain text file module.audio.aac.php Aux. getID3 dependency
  Accessible without login Plain text file module.audio.ac3.php Aux. getID3 dependency
  Accessible without login Plain text file module.audio.au.php Aux. getID3 dependency
  Accessible without login Plain text file module.audio.avr.php Aux. getID3 dependency
  Accessible without login Plain text file module.audio.bonk.php Aux. getID3 dependency
  Accessible without login Plain text file module.audio.dss.php Aux. getID3 dependency
  Accessible without login Plain text file module.audio.dts.php Aux. getID3 dependency
  Accessible without login Plain text file module.audio.flac.php Aux. getID3 dependency
  Accessible without login Plain text file module.audio.la.php Aux. getID3 dependency
  Accessible without login Plain text file module.audio.lpac.php Aux. getID3 dependency
  Accessible without login Plain text file module.audio.midi.php Aux. getID3 dependency
  Accessible without login Plain text file module.audio.mod.php Aux. getID3 dependency
  Accessible without login Plain text file module.audio.monkey.php Aux. getID3 dependency
  Accessible without login Plain text file module.audio.mp3.php Aux. getID3 dependency
  Accessible without login Plain text file module.audio.mpc.php Aux. getID3 dependency
  Accessible without login Plain text file module.audio.ogg.php Aux. getID3 dependency
  Accessible without login Plain text file module.audio.optimfrog.php Aux. getID3 dependency
  Accessible without login Plain text file module.audio.rkau.php Aux. getID3 dependency
  Accessible without login Plain text file module.audio.shorten.php Aux. getID3 dependency
  Accessible without login Plain text file module.audio.tta.php Aux. getID3 dependency
  Accessible without login Plain text file module.audio.voc.php Aux. getID3 dependency
  Accessible without login Plain text file module.audio.vqf.php Aux. getID3 dependency
  Accessible without login Plain text file module.audio.wavpack.php Aux. getID3 dependency
  Accessible without login Plain text file module.graphic.bmp.php Aux. getID3 dependency
  Accessible without login Plain text file module.graphic.efax.php Aux. getID3 dependency
  Accessible without login Plain text file module.graphic.gif.php Aux. getID3 dependency
  Accessible without login Plain text file module.graphic.jpg.php Aux. getID3 dependency
  Accessible without login Plain text file module.graphic.pcd.php Aux. getID3 dependency
  Accessible without login Plain text file module.graphic.png.php Aux. getID3 dependency
  Accessible without login Plain text file module.graphic.svg.php Aux. getID3 dependency
  Accessible without login Plain text file module.graphic.tiff.php Aux. getID3 dependency
  Accessible without login Plain text file module.misc.cue.php Aux. getID3 dependency
  Accessible without login Plain text file module.misc.exe.php Aux. getID3 dependency
  Accessible without login Plain text file module.misc.iso.php Aux. getID3 dependency
  Accessible without login Plain text file module.misc.msoffice.php Aux. getID3 dependency
  Accessible without login Plain text file module.misc.par2.php Aux. getID3 dependency
  Accessible without login Plain text file module.misc.pdf.php Aux. getID3 dependency
  Accessible without login Plain text file module.tag.apetag.php Aux. getID3 dependency
  Accessible without login Plain text file module.tag.id3v1.php Aux. getID3 dependency
  Accessible without login Plain text file module.tag.id3v2.php Aux. getID3 dependency
  Accessible without login Plain text file module.tag.lyrics3.php Aux. getID3 dependency
  Accessible without login Plain text file module.tag.xmp.php Aux. getID3 dependency
  Accessible without login Plain text file readme.txt Doc. getID3 dependency
  Accessible without login Plain text file structure.txt Doc. getID3 dependency
  Accessible without login Plain text file write.apetag.php Aux. getID3 dependency
  Accessible without login Plain text file write.id3v1.php Aux. getID3 dependency
  Accessible without login Plain text file write.id3v2.php Aux. getID3 dependency
  Accessible without login Plain text file write.lyrics3.php Aux. getID3 dependency
  Accessible without login Plain text file write.metaflac.php Aux. getID3 dependency
  Accessible without login Plain text file write.php Aux. getID3 dependency
  Accessible without login Plain text file write.real.php Aux. getID3 dependency
  Accessible without login Plain text file write.vorbiscomment.php Aux. getID3 dependency

 Version Control Unique User Downloads Download Rankings  
 100%
Total:374
This week:1
All time:6,769
This week:560Up