I have a very basic upload script, probably lifted straight off the php.net/move_upload_files function page.
move_uploaded_file() is failed because it canno
move_uploaded_file()
I was trying out http://www.w3schools.com/php/php_file_upload.asp And I stumbled across the same bug.
In my case, adding a "./" before the $destination solved the problem.
bool move_uploaded_file ( string $filename , string $destination )