PHP Classes
Icontem

Class: FileDB


  Search   All class groups All class groups   Latest entries Latest entries   Top 10 charts Top 10 charts   Newsletter Newsletter   Blog Blog   Forums Forums   Help FAQ Help FAQ  
  Login   Register  
Recommend this page to a friend! ReTweet ReTweet Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  Classes of Lennart Groetzbach  >  FileDB  >  Download  >  Support forum Support forum  >  Blog Blog  >  RSS 1.0 feed RSS 2.0 feed Latest changes  
Name: FileDB Support forum
Base name: filedb
Description: Stores (binary) files in a database
Related top rated classes: ,
Version: -
Required PHP version: -
License: GNU Lesser General Public License (LGPL)
All time users: 2752 users
All time rank: 865
Week users: 1 user
Week rank: 3613
 
  Author   Group folder image Groups   Detailed description   Freshmeat project  
  Rate classes User ratings   Applications   Related links   Files Files  

Author

Picture of Lennart Groetzbach
Name: Lennart Groetzbach <e-mail contact>
Published packages: 13 Browse this author's classes Browse this author's classes
Country: Germany Germany - PHP jobs in Germany
Home page: http://www.lennartgroetzbach.de/
Age: 35
All time rank: 34
Week rank: 152

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

Detailed description

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

Freshmeat project

Project record: filedb
Popularity score: 53.5
Vitality score: 1.44

User ratings

Ratings
Utility
Consistency
Documentation
Examples
Tests
Videos
Overall
Rank
All time:
Good (81.3%)
Good (93.8%)
Sufficient (75.0%)
Sufficient (75.0%)
-
-
Sufficient (65.0%)
386
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

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.

 
  Advertise on this site Advertise on this site   Site map Site map   Statistics Statistics   Site tips Site tips   Privacy policy Privacy policy   Contact Contact  

For more information send a message to :
info at phpclasses dot org.
Copyright (c) Icontem 1999-2009 PHP Classes - PHP Class Scripts
  PHP Book Reviews - Reviews of books and other products