|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
[2001-11-30 10:33 UTC] Information-Cascade at ntlworld dot com
Document: features.file-upload.put-method.html SAYS: The filename of this temporary file is in the $PHP_PUT_FILENAME variable SAYS: copy( $PHP_UPLOADED_FILE_NAME, $DOCUMENT_ROOT.$REQUEST_URI ); Neither works. What does? PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
|
|||||||||||||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Tue Oct 28 09:00:01 2025 UTC |
this is a PHP 3 only feature that noone ever ported to PHP 4 ... with 4.3 you will be able to read the PUT data from the php://input stream as the $PHP_PUT stuff in PHP 3 seems to be something almost never used and as the new streams solution is so easy to use i think it is not worth to port the PHP 3 feature here ... in 4.3 you will be able to just do a $in = fopen("php://input","rb"); $out = fopen($outfile,"wb"); while(!feof($in)) { fwrite($out, fread($in, $bufsize)); } fclose($in); fclose($out); no nead to deal with temporary files, no disk space wasted when the script doesn't need the PUT data, and the approach is not limited to PUT requests but will work with all HTTP methods carrying content changed to documentation problem