[求助]php上传的问题
写了下面的代码,出现了问题,输出上传的路径的时候直接输出的是 /(upload.name),好像是不能找到路径,我是linux系统,请高手帮我解决一下if(!empty($_FILES["upfile"])){
$uploaddir = "../";
$uploadfile = $uploaddir.$_FILES['upfile']['name'];
if(move_uploaded_file($_FILES['upfile']['tmp_name'],$uploadfile))
{
echo $uploadfile;
echo“文件上传成功!”; }
else{
echo $uploadfile;
echo "<h2><font color=#ff0000>文件上传失败!</font></h2><br><br>";
}