News Feed
Jobs Feed
Sections




News Archive
Looking for more information on how to do PHP the right way? Check out PHP: The Right Way

Programmer Assist:
Handling File Uploads With PHP
June 15, 2006 @ 05:55:44

Handling file uploads can be a little bit of a ticky concept to learn for developers just starting out, so it's good to have resources like this to look to for an introduction.

The post gives you a basic version of the two necessary parts for the upload - the HTML for the form and the PHP script to handle the uploaded data. Their sample script simply takes in the file and moves it over to their "/var/www/uploads" directory while ensuring it's a valid upload and that it could be moved.

It's nothing fancy, and there are some other considerations that need to be made for the uploads (like limiting the file type), but it's a place to start.

0 comments voice your opinion now!
file upload handling html form move_uploaded_file file upload handling html form move_uploaded_file


blog comments powered by Disqus

Similar Posts

ZD Net Asia: Keep your options open with FTP file uploads

PHPWomen.org: Add values to a symfony form in between save() and serialization to the database

Jani Hartikainen's Blog: How to make a file downloadable through your script

Matthias Noback: Symfony2: Add a global option to console commands and generate a PID file

Wez Furlong\'s Blog: Don\'t blog bugs, file bug reports


Community Events











Don't see your event here?
Let us know!


release hhvm composer symfony2 database project podcast unittest application performance language install package facebook security component framework introduction hack example

All content copyright, 2014 PHPDeveloper.org :: info@phpdeveloper.org - Powered by the Solar PHP Framework