Login   Register  
PHP Classes
elePHPant
Icontem

FileDB

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

  Author  
Picture of L
Name: L <e-mail contact>
Packages: 13 Browse all classes by L Browse all classes by
Country: Germany Germany - PHP jobs in Germany
Age: 38
All time rank: 466 in Germany Germany
Week rank: 462 Down17 in Germany Germany Down


  Detailed description   Download .zip .tar.gz  
With this class you can easily store, display and send files from a db.
It has a built-in hit counter and stores information of last edition, upload, etc..


This class uses my db abstraction layer, AbstractDB
(http://www.phpclasses.org/browse.html/package/846.html) , which allows a unified and easy access to databases, which you can see in this class.


CONSTRUCTOR:
function FileDB(&$db, $host, $database, $user, $password)

FUNCTIONS:
function add($file_name, $file_descr = '')
function remove($id)
function get($id, $addHit = true)
function getWhere($from, $where = '', $addHit = true)
function getFile($id, $addHit = true)
function getFileData($id)
function getIds()
function sendFile($id)

function _getFileContent($file_name)

PUBLIC VARS:
var $file_count

  Classes of L  >  FileDB  >  Download .zip .tar.gz  >  Support forum Support forum  >  Blog Blog  >  RSS 1.0 feed RSS 2.0 feed Latest changes  
Name: FileDB
Base name: filedb
Description: Stores (binary) files in a database
Version: -
PHP version: -
License: GNU Lesser General Public License (LGPL)
All time users: 2942 users
All time rank: 1095
Week users: 0 users
Week rank: 2241 Equal
 
  Groups   Freshmeat project   Rate classes User ratings  
  Applications   Related links   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


  Freshmeat project  
Project record: filedb
Popularity score: 44.7
Vitality score: 1.43

  User ratings  
Ratings
Utility
Consistency
Documentation
Examples
Tests
Videos
Overall
Rank
All time:
Good (81.2%)
Good (93.8%)
Sufficient (75.0%)
Sufficient (75.0%)
-
-
Sufficient (65.0%)
465
Month:
Not yet rated by the users

  Applications that use this class  
Link Description
Uploader is used in the testFileDB2.php example
Add link image If you know an application of this package, send a message to the author to add a link here.

  Related links  
Link Description
anyDB The db access class
Rate me Rate this class @ Hotscripts

  Files folder image Files  
File Role Description
Accessible without login HTML file FileDB.html Doc. php doc
Plain text file FileDB.php Class main class
Plain text file files.sql Conf. sql definition
Accessible without login Plain text file showFile.php Appl. example
Accessible without login Plain text file testFileDB.php Example example
Accessible without login Plain text file testFileDB2.php Example example using Uploader.php

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