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;
Auf dieser Seite können Sie das Online-Video PHP - How to Upload a File to Your PHP Web Server - HTML Form and PHP Script Tutorial.avi mit der Dauer stunde minuten sekunde in guter Qualität ansehen, das der Benutzer Help Video Guru 27 April 2011 hochgeladen hat, den Link mit Freunden und Bekannten teilen, dieses Video wurde auf Youtube bereits 118,210 Mal angesehen und es wurde von 311 den Zuschauern gefallen. Viel Spaß beim Betrachtenden Zuschauern gefallen!