业务经理

微信扫描以上二维码

028-61286886

技术咨询

PHP 导入 EXCEL 到数据库 Internal Server Error

迅睿框架 更新 2020-11-17 22:03:10 小黄人 18html.com
Internal Server Error
The server encountered an internal error or misconfiguration and was unable to complete your request.
Please contact the server administrator at admin@example.com to inform them of the time this error occurred, and the actions you performed just before this error.
More information about this error may be available in the server error log.
Additionally, a 500 Internal Server Error error was encountered while trying to use an ErrorDocument to handle the request.


PHP 导入 EXCEL 到数据库

使用官方的表单插入副表的那个代码

插入600条记录左右(因为要入副表,那应该是执行了 600 * 2次)

然后就出现了上面的错误!


官方的插入代码 一条记录是要执行3次,SQL,一次主表,一次更新主表的tableid,一次是入副表

如果是3次的话,只能400条,1200次


如果是写死,tableid=0  执行2次,那就也是大概 1200次!


请问,大概是什么问题引起这个错误?是超时吗?还是内存?

方案

  • 迅睿框架创始人 #1 · 2020-06-08 12:10:27
    满意答案
    内存不足,建议分页插入,嘴一个进度条的功能
  • 琉惗 #2 · 2020-06-08 12:57:36
    用我那个方法把,能导入的多https://www.xunruicms.com/wenda/21525.html
  • 小黄人 18html.com #3 · 2020-11-17 22:03:10
    迅睿框架创始人:完结吧!比卡丘

迅睿系统漏洞

问卷调查
问卷调查(2026-09-06)
问卷调查插件:多题型、条件显示、答卷统计,适合调研与反馈收集。
GEO系统
GEO系统(2026-09-05)
修复发布文章缺少最后一图问题
Querylist渐进式采集
Querylist渐进式采集(2026-09-05)
新增元素循环 新增字符串匹配栏目 优化采集流程
GeoSeo收录宝
GeoSeo收录宝(2026-09-04)
修复在 官网在线升级非重新安装 ai发布-指令模版错误
多语言翻译Seolang
多语言翻译Seolang(2026-09-04)
URL 为空时自动用栏目目录反推带目录完整路径写入缓存 把&quo...
GeoSeo工具箱
GeoSeo工具箱(2026-09-04)
新增栏目SEO/文章SEO TDK优化 新增Crawl-delay...
IDC云产品管理
IDC云产品管理(2026-09-04)
产品管理 续费管理 插件设置 使用说明