The second argument to copy() function cannot be a directory

后端 未结 7 805
温柔的废话
温柔的废话 2020-12-18 20:29

Anyone know why this:



        
7条回答
  •  猫巷女王i
    2020-12-18 20:57

    if you want just copy the file in two Dir different, try this :

    if (move_uploaded_file($_FILES['photo']['tmp_name'], $target.$pic1))
    {
      copy("C:/Program Files (x86)/EasyPHP-5.3.9/www/.../images/".$pic1, "C:/Program Files (x86)/EasyPHP-5.3.9/www/.../images/thumbs/".$pic1)
    }
    

    You should write the complete path "C:/..."

提交回复
热议问题