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

SitePoint.com:
How To Handle File Uploads With PHP
Jul 10, 2009 @ 10:25:50

New on the SitePoint "PHP & MySQL Tutorials" blog today Kevin Yank has posted another excerpt from the "Build Your Own Database Driven Website Using PHP and MySQL" looking at handling file uploads in PHP.

An common challenge faced by PHP programmers is how to accept files uploaded by visitors to your site. In this bonus excerpt from Chapter 12 of [the book] you'll learn how to accept file uploads from your web site visitors securely and store them.

The tutorial introduces the $_FILES superglobal and how you can use it to access the file information about the uploads the user's can make. He also mentions some of the functions that can be used on the files (like is_uploaded_file).

tagged: book excerpt tutorial upload file

Link: