php file upload problem

后端 未结 6 1248
野性不改
野性不改 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:32

    Why not just do this:

    $uploaddir = './upload';
    

    it will be relative to where your script is, it that is the intent? Otherwise you need the full dir (from system root)

提交回复
热议问题