Selected Content

File Uploads with PHP - Part 1: Form and File Handling

By: Steven Seiller on Monday, June 22, 2009
Reader Level: Reader Level


Primary Category: PHPTo handle file uploads, use built-in PHP functionality. File uploads can be integrated in applications such as form submissions, file sharing, image uploads or FTP replacement. PHP features a superglobal array specifically for uploaded files as well as specific functions for handling uploaded files.

Part One of this script will demonstrate how to set up an HTML form for file uploading as well as a PHP script example for processing uploaded files. This demonstration script can be used as an FTP replacement, providing a method for laymen to upload files to the server without access to an FTP client.

The File Uploads with PHP Series:
File Uploads with PHP - Part 1: Form and File Handling
File Uploads with PHP - Part 2: Multiple Files
File Uploads with PHP - Part 3: Type or Size Restrictions

Purchase this item
You can purchase this piece of content separately for $5.00

Want more?
Community MX members get unlimited access to daily articles, tutorials, extensions and support. The most comprehensive resource for Macromedia designers and developers today. Take a tour of what we offer, and discover the benefits of subscribing.

Already a member?
Simply log in using the form in the top right area of the site.