You need to enable JavaScript to run this app.
优惠活动
大模型
产品
解决方案
定价
更多

CodeIgniter 4读取Excel文件时出现500内部服务器错误的问题求助

CodeIgniter 4读取Excel文件时出现500内部服务器错误的问题求助

各位开发者好,我最近在CodeIgniter 4项目里做读取Excel文件的功能,结果每次触发对应的路由时,都会碰到500内部服务器错误,具体提示是:

Failed to load resource: the server responded with a status of 500 (Internal Server Error)

我本来的目标是成功读取指定Excel文件里的数据,但现在完全没法推进了,有没有朋友能帮我看看问题出在哪呀?

下面是我控制器里的相关代码(代码还没写完,但目前能提供的部分如下):

public function excelShow(){
    $filePath = WRITEPATH . 'public/Book1.xlsx';      
    $spreadsheet = IOFactory::load($fil

备注:内容来源于stack exchange,提问作者Rams

相关产品推荐
方舟 Agent Plan

超全模态模型 × Harness 升级,最新支持 Deepseek-V4.1-Flash、GLM-5.3 系列、Doubao-Seedream-5.0-pro、Kimi-K3 (部分), 限时 9.9 元起

最近更新时间:2026.04.13 17:34:49