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 be reported, question _ ajaxErr about PHP excel file import
I am using the thinkphp framework. when importing an excel file, when there is a large amount of data in the excel file, there will be an ajax error and the speed is a little slow. this is not the case when there is little data in the excel file, for example, if 3000 pieces of data in an excel file are imported to 500 or 600 pieces, the ajax error is reported.
_ 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 );
}, PHP Excel Ajax
------ Solution --------------------
Change the memory_limit value in php. ini to a greater value.
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.