PHP Classes

File: example.php

Recommend this page to a friend!
  Classes of Paul Scott   MySQL File System   example.php   Download  
File: example.php
Role: Example script
Content type: text/plain
Description: Example Script
Class: MySQL File System
Store and retrieve files in a MySQL database BLOBs
Author: By
Last change:
Date: 17 years ago
Size: 386 bytes


Class file image Download
//include the mysql storage class

//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

//retrieve the file with id = 1