I'm trying to create an upload page using the following script:
<?php
if (is_uploaded_file($_FILES['userfile']['tmp_name'])) {
copy($_FILES['userfile']['tmp_name'], '/uploads');
} else {
echo "Possible file upload attack. Filename: " . $_FILES['userfile']['name'];
}
?>
I know this isn't very secure, but I'm only using it for the network in my house. I'm running apache on windows xp, and am having trouble figuring out if this is a windows xp permission setting or a chmod setting or what the deal is. As you could imagine, I'm getting my upload attack error each time. Any ideas?
Thanks,
~JOSH