FileDB 1.0

FileDB class allows you to easily store, display and send files from a database. It has a built-in hit counter and stores information of last edition, upload, etc..

This class uses my db abstraction layer, AbstractDB which allows a unified and easy access to databases, which you can see in this class.

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

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)

var $file_count

License type: LGPL - GNU Lesser General Public License
Date added: 10 years, 6 months 7 days ago | Last updated: 10 years, 6 months 7 days ago

More popular File & Folder

This is actually one of the most advanced image hosting script. The imagetize key features: SEO, Ads Ready, Admin

Listing Files

  • files.sql
  • 382 Bytes
  • 10/03/2005 20:10:12
Hot Scripts