kejo wrote:my host forbids me to edit error reporting
Well that's stupid. Have you tried using the [man]ini_set/man function to change these two directives, like so:
ini_set('display_errors', 'On');
ini_set('error_reporting', E_ALL);
?
The reason I want to get error reporting turned on, is because I believe you're receiving a warning such as the one I pasted. Why? Normally, webservers aren't configured to allow the "PUT" operation, which allows you to upload a file across an HTTP connection (different than POSTing the contents of the file - a PUT operation is more like FTP'ing a file to a server, though not exactly the same).
Think about it, it makes sense: Would you want anyone in the world to have the ability to upload files to your webserver? Of course not! Not only could they upload viruses, but they could use up all of your space!
If you have FTP access to the server you wish to upload files to, you might want to consider using the [man]FTP[/man] functions in PHP.