<?php //include the mysql storage class include("mysql_filesystem_class_inc.php");
//set up the storage object. $storage = new mysql_filesystem('localhost','3306','root','secret','mydbname');
//use an upload form to get the file onto the server //store a file in the db $storage->uploadProcess('example.txt','text/plain');
//retrieve the file with id = 1 $storage->getFile('1');
?>
|