Uploaded April 2011 | Updated November 2026, 3 hours ago
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;
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;









![Windows 8 - Install Uniserver Zero XI - Free Apache, PHP, MySQL Web Server [WAMP]
Windows 8 - Install Uniserver Zero XI - Free Apache, PHP, MySQL Web Server [WAMP]
I forgot to click on Start MySQL ... so do that as well.
The Uniform Server is a lightweight server solution for running a web server under the WindowsOS. Less than 10MiB, it includes the latest versions of Apache2, Perl5, PHP5, MySQL5, phpMyAdmin and more. No installation required! No registry dust! Just unpack and fire up!
It is small and mobile to download or move around and can also be used or setup as a production/live server.
MySQL (Software), PHP (Programming Language), Apache HTTP Server (Software), Web Server (Software Genre), Windows, Free, Uniform Server, UniServer, install, download, setup, set up Windows 8 - Install Uniserver Zero XI - Free Apache, PHP, MySQL Web Server [WAMP]](https://i.ytimg.com/vi/EDFJoMAJGc4/mqdefault.jpg)
