Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

uploading files...

Status
Not open for further replies.

swordfish6969

Programmer
Apr 17, 2005
3
AU
hey all,

I want to make a page for my website, where people can browse to a file on their computer, and then upload this file to my server. how do i go about doing this, using dreamweaver, and php for the scrip. i need help with the script,thanx in advance for any help.

cheers, swordfish
 
Hi,

You have to have:
* Login system
* PHP
* Notepad
* FTP client for uploading your files

I would use mysql backend, for controlling who owns which files, etc.


You also have to control which files are uploaded! (filetype), as well as where they can upload.
You also have to FIX filenames! If they upload filenames with characters like: `, æ, ø, etc. they will not be viewable via internet-browsers!

It's not very hard to make.
I made a system with quotas, etc. but it's very simple!

table1: usertable
table2: userlevel
table3: quota

In table1, you define user_id (unique), username, password and userlevel
In table2, you define userlevel_id (unique), userlevel_title and userlevel_quota_id (int)
In table3, you define quota_id (unique), quota_size (int).

Then you make some simple logic.

Olav Alexander Mjelde
Admin & Webmaster
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top