1. Computing

Discuss in my forum

Angela Bradley

Storing Files in MySQL

By , About.com GuideFebruary 28, 2006

Follow me on:

Storing files in a MySQL database has a number of uses. You can make the files searchable, allow your users to add files, control and count file downloads, or display random files. This also gives you the option to literally house your entire website in the MySQL database.

Allowing users to upload files is accomplished through a simple web form. The form is then processed by PHP which adds the necessary slashes and uploads it as a BLOB to the MySQL database.
Comments
November 7, 2009 at 9:16 pm
(1) php trivandrum says:

I tried creating a generalized version for storing files into mysql, and retrieving it with streaming support. The whole solution with the php class is put up for download.

Read about it at my post MySQL FileSystem – A PHP Implementaion

Leave a Comment

Line and paragraph breaks are automatic. Some HTML allowed: <a href="" title="">, <b>, <i>, <strike>

©2013 About.com. All rights reserved.