Simple upload not working (using xampp)

I am testing a really basic upload script and it doesn’t seem to be working. I am using xampp.

After upload, I do a print_r on $_FILE. There are no errors (i.e. error code = 0). However, the tmp_name points to a file that doesn’t exist. I checked my tmp directory and it doesn’t contain the tmp_name file. I also checked my php.ini file to ensure the tmp upload directory was set properly.

Any thoughts?

Thanks.

Dave

Ah, I should’ve known.

Thanks buddy.

I think the temporary file is deleted after the script stops executing, so you wouldn’t be able to see it.

If you move the temporary file to a directory using move_uploaded_file, you should find everything works fine.