在Excel中读取excel
我安装了PHP 5.3.29并试图用php-excel-reader-2.21
读取excel文件,但是它给出了如下的错误
Fatal error: Maximum execution time of 300 seconds exceeded in php-excel-reader-2.21\excel_reader2.php on line 143
也试图使用phpExcelReader
,它给出了如下错误。
Fatal error: Maximum execution time of 300 seconds exceeded in C:\Apache2.2\htdocs\phpExcelReader\Spreadsheet\Excel\Reader\oleread.php on line 96
在最大时间限制的工作可能没有帮助,因为我只有2行读取Excel文件,并为此设置的值“300”已经很高。 任何人都有想法,为什么图书馆不能阅读优秀? 还是有其他的build议?
在你的php.ini
文件中有一个指令max_execution_time
,把它改成你想要的。
要么
在你的PHP脚本中,写下面一行:
ini_set('MAX_EXECUTION_TIME', -1);