Questions about importing excel files using PHP-php Tutorial

Source: Internet
Author: User
I used thinkphp framework to import excel files in PHP. when importing excel files, when there is a large amount of data in the excel files, an ajax error will be reported and the speed will be a little slow, this is not the case when there is a small amount of data in excel. for example, if 3000 pieces of data in excel are imported to 500 or 600 pieces, this ajax error will occur.
_ AjaxError: function (data, transport ){
If (data. status = 0 & transport = null)
Alert ("The page is not served from a server! Ajax call failed ");
Else if (typeof console! = "Undefined ")
Console. log ("Ajax error:" + data. status + "" + transport );
},


Reply to discussion (solution)

No answer? sorry.

Change the memory_limit value in php. ini to a greater value.

It's not good to change the memory_limit value in php. ini to a larger value.

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.