Php post method for uploading files-PHP Tutorial-php Tutorial

Source: Internet
Author: User
PHP uses the POST method to upload files. When learning PHP, you may encounter a PHP Upload problem. here we will introduce the PHP Upload solution and share it with you. This feature allows users to upload texts and learn PHP files. you may encounter PHP Upload problems. here we will introduce the PHP Upload solution and share it with you. This feature allows users to upload text and binary files. Using PHP authentication and file operation functions, you can fully control who are allowed to upload files and how to process PHP files uploaded after the files are uploaded. Note that PHP also supports file upload using the PUT method. this method is used by Netscape Composer and W3C Amaya clients.

Example 1. file upload form

You can create a special form to support file upload as follows:

 
  1. <Form Enctype="Multipart/form-data" Action="/Index. php/Article" Method="POST">
  2. <Input Type="Hidden" Name="MAX_FILE_SIZE" Value="30000" />

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.