文件uplaod php最大文件 [英] file uplaod php maximum files

查看:118
本文介绍了文件uplaod php最大文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想用php上传一些文件。信息范读亦亦能信息的预亦读预秘范范范范范范范now now references now now now now now now now now now now now now now now now now now now nows now now now references可以上传的最大允许文件。预然信息您可能已经超过了PHP配置的 max_file_uploads 变量。它被设置为 50 (在Debian Lenny上)。



你可以找到并配置这个变量的php.ini 你不能在.htaccess文件中或在运行时用ini_set()来设置它,因为这个bug: http://bugs.php.net/bug.php?id=50684&edit=1



< php.ini 有:

 ;可以通过一个请求上传的最大文件数量
max_file_uploads = 50


i would like to upload some files with php. i got the following warning: Warning: Maximum number of allowable file uploads has been exceeded in Unknown on line 0

But i can't find the maximum allowable files that can be uploaded. Can i ignore the size or setting the size higher to upload all my files?

Thank you very much.

解决方案

You probably are exceeding the PHP configured max_file_uploads variable. Which is set to a default of 50 (on Debian Lenny).

You can find and configure this variable in php.ini. You can not set it in a .htaccess file or at runtime with ini_set() because of a bug: http://bugs.php.net/bug.php?id=50684&edit=1

In php.ini there is:

; Maximum number of files that can be uploaded via a single request
max_file_uploads = 50

这篇关于文件uplaod php最大文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆