HDTutorial
EN

Playback starts YouTube’s embedded player (privacy-enhanced mode).

PHP - How to Upload a File to Your PHP Web Server - HTML Form and PHP Script Tutorial.avi

118,620 views November 14, 2011 9:10

Watch on YouTube
ChannelHelp Video Guru

Description from the creator

This video shows you how to use PHP to upload a file to your PHP web server.

I start with the HTML form, that prompts the user to browse for a file to upload. Things to watch for:

Use the enctype="multipart/form-data" attribute in your form declaration. If you forget that, nothing will work.

The form action must be the name of the php file that processes the form: action="upload_file.php"

The method should be POST: method="post"

Note that the $_FILES["file"] variable is an array with such goodies as:
error, name, type, size, and tmp_file to access;

About this tutorial

Help Video Guru published this 9:10 video tutorial on November 14, 2011. It has been watched 118,620 times on YouTube.

Duration
9:10
Published
November 14, 2011
Views
118,620
Likes
312

Tags

Share

This tutorial in other languages