No, something is still not right... try it yourself, I'm getting a error.
http://www.mzanime.com/upload.html
Here si the PHP code I'm using:
<?php
$userfile = $_FILES["userfile"]; // this is the global that hold the uploaded files information
copy ($userfile, "./images/$userfile"); // since the uploaded file is made temporary, you have to copy it to a permanent location
echo "$userfile was successfully uploaded<br>;
echo "its size was $userfile["size"]";
?>
Also, what about permissions? If the user is allowed to upload files like this to my web space, doesn't he need to have write access to a specific directory?
Also I was thinking... I remember someone told me "Heh, assholes like me would upload 500mb files and crash the server" - is there some way I could prevent the user from uploading anything bigger than lets say, 5mb?
Thanks.