Hi,
does anyone know how to upload files with PUT in PHP. I tried it with POST, but its too slow. I want to use an HTML form to upload the file.
Thanks.
Noizee
Are you talking about ftp_put() ? If that is the case, you will need an FTP user setup. This would probably be a bit slower than a regular HTTP post.
No, I'm talking about the PUT method support mentioned in the PHP-Manual (http://www.php.net/manual/en/features.file-upload.put-method.php).
You need to add the script directive to your Apache config file. Put still uses copy() so it would be simpler to setup than a POST script, but no faster AFAIK.