Error explanation in PHP $ _ file

Source: Internet
Author: User

Introduction: This is a detailed page for error explanation in PHP $ _ file. It introduces PHP, PHP, upload, $ _ file, knowledge, skills, experience, and some PHP Source Code related to error interpretation in error PHP $ _ file.

Class = 'pingjiaf' frameborder = '0' src = 'HTTP: // biancheng.dnbc?info/pingjia.php? Id = 360994 'rolling = 'no'>

When uploading files with PHP, we will useProgramListen to the file information sent by the browser. First, the status of the file to be uploaded is determined by the different values of $ _ FILES [fieldname] ['error. $ _ FILES [fieldname] ['error'] = 0 indicates that everything is normal. For more information about other values, see the comments of the following program!

Switch ($ _ FILES [$ field] ['error']) {Case 1: // the file size exceeds the server space break; Case 2: // The size of the file to be uploaded exceeds the browser limit $ this-> seterror ("the file is too large (form ). "); break; Case 3: // The file is only partially uploaded $ this-> seterror (" the file was only partially uploaded. "); break; Case 4: // The file break to be uploaded is not found; Case 5: // break is lost in the temporary folder on the server; Case 6: // break error occurred when writing the file to the Temporary Folder ;}

Love J2EE follow Java Michael Jackson video station JSON online tools

Http://biancheng.dnbcw.info/php/360994.html pageno: 1.

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.