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
|
|
| 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: |
2946 users |
| All time rank: |
1096 |
| Week users: |
0 users |
| Week rank: |
2071  |
| |
|
| Project record: |
filedb |
| Popularity score: |
46.48 |
| Vitality score: |
1.43 |
| 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%) |
466 |
| Month: |
Not yet rated by the users |
| |
Applications that use this class |
|
|
| Link |
Description |
| Uploader |
is used in the testFileDB2.php example |

If you know an application of this package, send a message to the
author to add a link here.
| Link |
Description |
| anyDB |
The db access class |
| Rate me |
Rate this class @ Hotscripts |
| |
Files |
|
|