Php 可以上载的最大文件数是多少

Php 可以上载的最大文件数是多少,php,Php,我可以在我的phpinfo上看到max\u file\u uploads=100 我想一起上传大约100个文件,但我看到它不会发布超过25个文件输入。 为了测试,我做了以下脚本 <form action="filecheck.php" method="post" enctype="multipart/form-data"> <?php for($i=1;$i<=100;$i++) {

我可以在我的phpinfo上看到
max\u file\u uploads=100

我想一起上传大约100个文件,但我看到它不会发布超过25个文件输入。 为了测试,我做了以下脚本

<form action="filecheck.php" method="post" enctype="multipart/form-data">
        <?php
            for($i=1;$i<=100;$i++)
            {

                if(($i%5)==0)
                {
                    echo '<br>';
                }
                echo $i." ";
                ?>
                <input type="file" name="file_<?=$i?>">
                <?php
            }
        ?>
        <input type="submit" value="Save">
    </form>
但在我的实时服务器上显示如下


在我的php.ini中还有什么需要设置的吗?要将其完美地用作我的本地服务器?

您正在运行suhosin,它将其限制为25:

suhosin.upload.max_上传25


Op与我共享了他的
phpinfo()
output

更改大小后是否重新启动了服务器?有两个地方会受到限制。在php ini和服务器配置中。您可能需要更改上传后的最大大小。然后重新启动服务器。我确实重新启动了。这就是为什么我的phpinfo显示
max\u file\u uploads=100
。是否有两个不同的
php.ini
文件用于
开发
生产
?因为,在我的本地机器上,有两个。
echo "<pre>";
    print_r($_FILES);
echo "</pre>";
Array
(
    [file_1] => Array
        (
            [name] => a.txt
            [type] => text/plain
            [tmp_name] => *****\php8019.tmp
            [error] => 0
            [size] => 203
        )

    [file_2] => Array
        (
            [name] =>
            [type] =>
            [tmp_name] =>
            [error] => 4
            [size] => 0
        )
        ....
    [file_99] => Array
        (
            [name] =>
            [type] => 
            [tmp_name] => 
            [error] => 4
            [size] => 0
        )
        [file_100] => Array
        (
            [name] => b.txt
            [type] => text/plain
            [tmp_name] => ****\php801A.tmp
            [error] => 0
            [size] => 203
        )

)
Array
(
    [file_1] => Array
        (
            [name] => a.txt
            [type] => text/plain
            [tmp_name] => /tmp/phplbJzsi
            [error] => 0
            [size] => 203
        )

    [file_2] => Array
        (
            [name] =>
            [type] =>
            [tmp_name] =>
            [error] => 4
            [size] => 0
        )
    ....
    [file_24] => Array
        (
            [name] =>
            [type] =>
            [tmp_name] =>
            [error] => 4
            [size] => 0
        )

    [file_25] => Array
        (
            [name] =>
            [type] =>
            [tmp_name] =>
            [error] => 4
            [size] => 0
        )

)