Uploading

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
anticore
Forum Newbie
Posts: 21
Joined: Sat Mar 11, 2006 11:37 pm

Uploading

Post by anticore »

I'm creating a form in which users would upload a not so big file to the site,
should i user mySQL to handle the files or upload them to a seperate folder.
and I don't know where to begin with the uploading part in the form :roll:
User avatar
feyd
Neighborhood Spidermoddy
Posts: 31559
Joined: Mon Mar 29, 2004 3:24 pm
Location: Bothell, Washington, USA

Post by feyd »

generally, we'd recommend storing the files in the file system as that's what it's designed for. Only in rare circumstances (crappy host, sometimes) do we not.
User avatar
s.dot
Tranquility In Moderation
Posts: 5001
Joined: Sun Feb 06, 2005 7:18 pm
Location: Indiana

Post by s.dot »

To begin with uploading:

Make the form
- specify the enctype
- make the field for uploading a file (of type file)
- optional max_file_size field
Set Search Time - A google chrome extension. When you search only results from the past year (or set time period) are displayed. Helps tremendously when using new technologies to avoid outdated results.
josh
DevNet Master
Posts: 4872
Joined: Wed Feb 11, 2004 3:23 pm
Location: Palm beach, Florida

Post by josh »

Post Reply