业务经理

微信扫描以上二维码

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
    迅睿框架创始人:完结吧!比卡丘

迅睿系统漏洞

Excel导入与导出
Excel导入与导出(2026-10-21)
增加预设规则 内容更新:选择主表附表唯一值字段,如果这个字段有值就...
Bing站长数据
Bing站长数据(2026-10-21)
优化数据缓存 优化SSL通道降级
SQL工具箱加强版
SQL工具箱加强版(2026-10-21)
增加Sqlite3数据库直接备份 增加分卷备份
GEO系统
GEO系统(2026-10-21)
组合时不再把单词空格吃掉: 行内空格保留(如主词 SEO tools...
付费阅读
付费阅读(2026-10-21)
增加全站收费模式
外贸多语言建站
外贸多语言建站(2026-10-20)
修正DEEPL接口请求方式 增加接口日志显示
GeoSeo工具箱
GeoSeo工具箱(2026-10-19)
修正大众版兼容 优化城市落地页布局 新增城市随机模板配置
GeoSeo排名助手
GeoSeo排名助手(2026-10-19)
修复部分迅睿环境安装失败问题