php file upload problem

后端 未结 6 1246
野性不改
野性不改 2021-01-23 19:39

This code works properly in my localhost. I am using xampp 1.7.3. but when I put it in the live server it shows Possible file upload attack!. \'upload/\' is the fol

6条回答
  •  遥遥无期
    2021-01-23 20:22

    Most likely the $uploaddir is wrong. Use

    echo dirname(__FILE__);
    

    to get the real full path to your root folder on the web server and then put something like

    /web/real/path/to/root/upload
    

    as the path.

提交回复
热议问题