PHP move_uploaded_file is Not uploading Images when full web path is given in Unix system

后端 未结 4 935
猫巷女王i
猫巷女王i 2020-12-12 05:09

My Following code is working fine when I set

$target = \"size_images/14_20131216231522_cashew.jpg\";

But Not Working

4条回答
  •  臣服心动
    2020-12-12 05:34

    It has to be a relative path.. absolute path would not work.

    Also make sure that you know the difference between "/" and "./" But I would strongly recommend to either use configuration variables(in case of framework) OR constants to store file path.

    Former point to root and later point to current directory..

提交回复
热议问题