PHP Upload a file and display the upload progress method, _php tutorial

Source: Internet
Author: User

PHP uploads the file and displays the upload progress method,


This example describes how PHP uploads files and displays the upload progress. Share to everyone for your reference. Specific as follows:

Remember to upload the file when the big point, or did not see the upload finished, and upload the file not too big, on the G's even, 2G I tried, PHP can not stand, I test is more than 300 m, remember to adjust the small php.ini parameters ah "Select file =" Submit = "Get information" to one go Oh ^ ^

<?php$prefix = Ini_get (' Session.upload_progress.prefix '); $name  = Ini_get (' Session.upload_progress.name '); $ Key  = $prefix. $name; Session_Start (), if (Isset ($_post[' Get_info ')) {  $logo = $prefix. $_post[' logo '];  Exit (Json_encode ($_session[$logo]));} ElseIf ($_post) {  echo ';}? >

I hope this article is helpful to everyone's PHP programming.

http://www.bkjia.com/PHPjc/972637.html www.bkjia.com true http://www.bkjia.com/PHPjc/972637.html techarticle PHP uploads the file and displays the upload progress method, this article describes the PHP upload file and display the upload progress method. Share to everyone for your reference. Specific as follows: Remember to upload the text ...

  • Related Article

    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.