Skip to main content
October 15, 2010
Question

Dreamweaver PHP Uploader Form

  • October 15, 2010
  • 2 replies
  • 2425 views

Hey all,

Ok here's something that I haven't done much of, I'm looking for a tutorial on creating a page that would allow the user to upload files such as pictures for instance, then I need a page to store those pictures, I know it can be done in DW with a bit of PHP knowledge, I'm ok there.....  Could some one be so kind as to direct me to such a tutorial?

Thanks in advance

Allen

This topic has been closed for replies.

2 replies

David_Powers
Inspiring
October 15, 2010

http://docs.php.net/manual/en/features.file-upload.php

You'll also find detailed instructions in Lesson 9 of my book, "Adobe Dreamweaver CS5 with PHP: Training from the Source".

October 15, 2010

Thanks David!....does the link you provided contain instructions to upload files to another HTML page as opposed to a server?

Thanks so much

Allen

David_Powers
Inspiring
October 15, 2010

Bikerboy52 wrote:

Thanks David!....does the link you provided contain instructions to upload files to another HTML page as opposed to a server?

You don't upload files to an HTML page. You upload them to a server. If you want to display the file in a web page, you need to store the details of the uploaded file in a database and use PHP to extract the details from the database. Alternatively, you need to develop a script that is capable of identifying the uploaded file and displaying it.

Although the code involved is not particularly difficult, uploading a file is not a trivial operation. You need to check the size of the file, and make sure that it's not an executable file or script. Even if you check that it's an image, how do you know that it's suitable for display?

October 15, 2010

http://www.google.com/search?q=php+file+upload+tutorial

October 15, 2010

Thanks, I've used google already but haven't found anything and posted here in hopes that someone has already located one and could direct me to it.

Thanks again

October 15, 2010

You're welcome!

I assume you've found one now that works for you out of the many helpful first page results provided.

Hint: start with the first result.