Hello all,
I am using the following code to try and upload a file using php. This is on my local server so I have access to php.ini and apache stuff. It's windows xp I'm using.
mkdir("test");
if(move_uploaded_file($_FILES['userfile']['tmp_name'], "test")) {
print "{$_FILES['userfile']['name']} uploaded successfully";
} else {
print "Upload failed";
}
If fails for some reason saying it is unable to move it.
Any ideas?
Thanks.