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
Possible file upload attack!
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)