PDA

View Full Version : PHP Upload



loopsnhoops
2012-01-30, 02:46 PM
Hi,

I plan to make a site that people save files on and then the files are displayed to the public to download. I am new with this hosting website and have not figured out how and where to save the uploaded files to. Also, should I incorporate a MYSQL database in my website to store the files?

Thanks, Eric

suwunk
2012-01-30, 08:53 PM
This free PHP File Manager should help you.

File Thingie is a small web-based file manager written in PHP. It is intended for those who need to give others access to a part of their server's file system when FTP is not practical. Through File Thingie you and your users get access to the most common functions:
File Thingie • PHP File Manager (http://www.solitude.dk/filethingie/)

sgoodman
2012-01-30, 11:32 PM
It's not a good idea to store files in a database. While it is technically possible if you serialize (http://www.php.net/manual/serialize) the data, this is very inefficient.

It is better to store the files in a folder. The folder should be outside of your root directory. It will need special permissions, depending on if you're using Windows or Linux.

Shane.