php 移动文件函数哪里有问题?
<formaction="index3.php"method="post"enctype="multipart/form-data"><inputtype="file"n...
<form action="index3.php" method="post" enctype="multipart/form-data">
<input type="file" name="file" />
<br/>
<input type="submit" name="submit" value="submit">
</form>
<?php
if (isset($_POST['submit']))
{
var_dump($_FILES);
move_uploaded_file($_FILES['file']['tmp_name'],'C:\phpStudy\PHPTutorial\WWW');
}
//这里有什么问题
?>
提示说这行有问题,有什么问题?
move_uploaded_file($_FILES['file']['tmp_name'],'C:\phpStudy\PHPTutorial\WWW');
Warning: move_uploaded_file(): The second argument to copy() function cannot be a directory in C:\phpStudy\PHPTutorial\WWW\index3.php on line 16 展开
<input type="file" name="file" />
<br/>
<input type="submit" name="submit" value="submit">
</form>
<?php
if (isset($_POST['submit']))
{
var_dump($_FILES);
move_uploaded_file($_FILES['file']['tmp_name'],'C:\phpStudy\PHPTutorial\WWW');
}
//这里有什么问题
?>
提示说这行有问题,有什么问题?
move_uploaded_file($_FILES['file']['tmp_name'],'C:\phpStudy\PHPTutorial\WWW');
Warning: move_uploaded_file(): The second argument to copy() function cannot be a directory in C:\phpStudy\PHPTutorial\WWW\index3.php on line 16 展开
1个回答
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询