Uploading a file

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
andrewcrawford
Forum Newbie
Posts: 11
Joined: Sun Jul 15, 2007 10:55 am

Uploading a file

Post by andrewcrawford »

I plan to make a page for uploading files, i want the user to be able to browse for the file on there computer and then it is uploaded to the database and a location on the webserver, i also then want to be able to using php query the datasbe for the information and then display alink to the file on the page to downlaod the file
User avatar
superdezign
DevNet Master
Posts: 4135
Joined: Sat Jan 20, 2007 11:06 pm

Post by superdezign »

Make an upload form, process the upload, save the file, save the file's path in the database. Project done.
User avatar
webgroundz
Forum Commoner
Posts: 58
Joined: Thu Jun 21, 2007 1:20 am
Location: Philippines

Post by webgroundz »

here's my sample class upload you can try this and save the filename and file path into the database, all you have to do is loop all the filename and file path, then create a link for the document for you to able to see the document you uploaded..thanks..

viewtopic.php?t=70455
Post Reply