无法打开流:是一个目录中 [英] failed to open stream : Is a directory in

查看:142
本文介绍了无法打开流:是一个目录中的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述



警告:move_uploaded_file(test /)[function .move-uploaded-file]:未能打开流:第69行是/home/..../filename.php中的目录
$ b

警告:move_uploaded_file( )[function.move-uploaded-file]:无法将第/ 69行的/home/..../filename.php中的'/ tmp / phpKrCpQw'移动到'test /'中。



以下是错误的第67和69行:

  $ destination =test /。 $名称; 

$ answer = move_uploaded_file($ _ FILES ['user_file'] ['tmp_name'],$ destination);


解决方案

好像您的名字为空

  $ destination =test /。 $名称; 

回显您的名字,看看那里是什么。


I am getting the following warnings on trying on move an uploaded file from the temp folder to the desired one using php

Warning: move_uploaded_file(test/) [function.move-uploaded-file]: failed to open stream: Is a directory in /home/..../filename.php on line 69

Warning: move_uploaded_file() [function.move-uploaded-file]: Unable to move '/tmp/phpKrCpQw' to 'test/' in /home/..../filename.php on line 69

following are line nos 67 and 69 that are giving the error :

$destination = "test/". $name;

$answer = move_uploaded_file($_FILES['user_file']['tmp_name'],$destination);

解决方案

It seems like your name is null

$destination = "test/". $name;

echo you name and see what is coimg there.

这篇关于无法打开流:是一个目录中的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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