Php 小文件以HTML格式上传,但大文件则不能

Php 小文件以HTML格式上传,但大文件则不能,php,html,forms,wamp,xls,Php,Html,Forms,Wamp,Xls,我正在使用上载excel文件 <form action="import.php" method="post" enctype="multipart/form-data"> <input type="file" name="file" id="file"><br> <input type="submit" name="submit" value="Submit"> </form> 这在简化版本的excel

我正在使用上载excel文件

  <form action="import.php" method="post" enctype="multipart/form-data">
      <input type="file" name="file" id="file"><br>
      <input type="submit" name="submit" value="Submit">
  </form>
这在简化版本的excel文件(100行)上运行良好,但完整版本(4000行)只返回null,没有错误,等等

 post_max_size = 30M
 upload_max_filesize = 20M
Var_转储返回:

 array (size=0)
      empty

查看您的项目中是否有类似的内容:

ini_set('post_max_size', 'SOME_VALUE');
ini_set('upload_max_filesize', 'SOME_VALUE');

如果您在项目中包含了库,有时它们会初始化一些php值。

我在搜索中也看到了这一点,但在Apache和php中更改这些设置没有任何区别。不确定为什么有5个人将其标记为重复,问题与链接的问题不同。
ini_set('post_max_size', 'SOME_VALUE');
ini_set('upload_max_filesize', 'SOME_VALUE');