Posts: 3,621
Name: Thierry
Location: I'm the uber Spaminator !
|
What happens when you try to upload something ?
Do you get an error message, or something ?
The way I see this code, PHP will try to write the file at the same place that this script.
But this could fail if PHP had only reading permissions on the current folder.
Or maybe the file upload is disabled, as some functions can be disabled in safe mode...
Another thing is that often free hosting restrict the maximum size of the files. So, if your file is bigger that this limit (and if there is one) maybe that the file is silently discarded from the directory.
__________________
Only a biker knows why a dog sticks his head out the window.
|