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-10-15)
子站域名新增llms.txt访问
GEO系统
GEO系统(2026-10-14)
修复下载zip空白地址问题 修复流量复刻和任务队列错误
GeoSeo收录宝
GeoSeo收录宝(2026-10-14)
新增 站长工具箱 前端首页自动调用meta 数据
滑块验证码 Gocaptcha
滑块验证码 Gocaptcha(2026-10-13)
基于开源项目 go-captcha 的行为验证码插件,滑动拼图、区域...
GeoSeo工具箱
GeoSeo工具箱(2026-10-13)
优化巡检任务
GeoSeo排名助手
GeoSeo排名助手(2026-10-11)
加入大模型自定义
SEO聚合关键字
SEO聚合关键字(2026-10-11)
优化关键字列表页最多支持1万篇文章,过多会导致服务器扛不住;
CMS内容同步复制
CMS内容同步复制(2026-10-10)
增加时间是否更新的开关