Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/php/272.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Php 带有内置webserser的输入文件_Php_Webserver - Fatal编程技术网

Php 带有内置webserser的输入文件

Php 带有内置webserser的输入文件,php,webserver,Php,Webserver,输入文件是否与php5.4内置Web服务器配合使用 当我发布一个文件时,$\u FILES数组在我的本地测试机器上是空的 这是我的表格: <form name="publicite" enctype="multipart/form-data" class="form-horizontal" method="post" action=""> <div class="control-group"> <label class="control-label" for

输入文件是否与php5.4内置Web服务器配合使用

当我发布一个文件时,$\u FILES数组在我的本地测试机器上是空的

这是我的表格:

<form name="publicite" enctype="multipart/form-data" class="form-horizontal" method="post" action="">
<div class="control-group">
    <label class="control-label" for="dynamique">Fichier Dynamique</label>
    <div class="controls">
        <div class="input-append">
            <input id="dynamique" type="file" />
        </div>
    </div>
</div>
<div class="control-group">
    <label class="control-label" for="img">Fichier Image</label>
    <div class="controls">
        <div class="input-append">
            <input id="img" type="file" />
        </div>
    </div>
</div>
<div class="control-group">
    <div class="controls">
        <button class="btn btn-primary" type="submit">Enregistrer</button>
        <button class="btn" type="button">Annuler</button>
    </div>
</div>
它返回:

array (size=0)

空的

您应该为输入指定一个名称:

<input id="img" type="file" name="file1" />


然后,$\u文件应包含输入中具有指定名称的数据。

您应为输入指定名称:

<input id="img" type="file" name="file1" />


然后,$\u文件应包含输入的数据和指定的名称。

您应在所有字段中指定一个名称以访问该数据

<input id="dynamique" type="file" name="dynamique" />
<input id="img" type="file" name="img"/>

您应该在所有字段中提供一个名称来访问它

<input id="dynamique" type="file" name="dynamique" />
<input id="img" type="file" name="img"/>


嘿,这里是上午11:46:D没问题:这里是上午11:46:D没问题:D