move_uploaded_file函数中的错误 [英] error in move_uploaded_file function
本文介绍了move_uploaded_file函数中的错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
大家好
在我的php页面中,我想上传图像,当我写此行时,它没有上传图像,但是文件名和目标位置正确.
hi all
in my php page , i want to upload an image, and when i wrote this line , it didn''t upload the image however the file name and its destination is correct.
$target_path = $target_path . basename( $_POST['uploadedfile']);
$desfile="shop_$id.jpg";
if (move_uploaded_file($_POST["file"]["name"],"item/" . $desfile))
{
echo "Uploaded";
}
因此,任何人都可以帮助我并告诉我该错误的原因,请
感谢
so, anyone can help me and tell me the reason of this error ,please
thanks
推荐答案
target_path =
target_path =
target_path . basename(
target_path . basename(
_POST [' 已上传文件']);
_POST['uploadedfile']);
这篇关于move_uploaded_file函数中的错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文