1. Technology
You can opt-out at any time. Please refer to our privacy policy for contact information.

Uploading Files with PHP

By

1 of 6

The HTML Form
This script will allow you to upload files from your browser to your hosting, using PHP. The first thing we need to do is create an HTML form that allows people to choose the file they want to upload.
 <form enctype="multipart/form-data" action="upload.php" method="POST">
 Please choose a file: <input name="uploaded" type="file" /><br />
 <input type="submit" value="Upload" />
 </form> 
This form sends data to the file "upload.php", which is what we will be creating next to actually upload the file.
Related Video
Upload Videos to Google Video
  1. About.com
  2. Technology
  3. PHP / MySQL
  4. Advanced PHP
  5. PHP File Upload Script - Step-By-Step Tutorial

©2014 About.com. All rights reserved.