Copy link to clipboard
Copied
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
Copy link to clipboard
Copied
http://www.google.com/search?q=php+file+upload+tutorial
Copy link to clipboard
Copied
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
Copy link to clipboard
Copied
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.
Copy link to clipboard
Copied
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".
Copy link to clipboard
Copied
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
Copy link to clipboard
Copied
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?
Copy link to clipboard
Copied
ahh...ok...gotcha, I think I have it now
thanks David