Advertisement
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
|
| Resource Details: |
|---|
| Version : | 0.5 | | Price : | Free (LGPL) | | Date Added : | Wed Jan 18, 2006 | | Author : | Lennart Groetzbach |
| Rate: | 0.0(out of 5) | | Vote: | 0 Votes |
|
| Other Listing by This User: |
|---|
|
|