RE: [PHP-DEV] PHP 4.0 Bug #4763: PHP_PUT_FILENAME is gone?
| From: | Gauthier, Ludovic | Date: | Mon, 05 Jun 2000 10:16:02 +0000 |
| Subject: | RE: [PHP-DEV] PHP 4.0 Bug #4763: PHP_PUT_FILENAME is gone? | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-20237@lists.php.net to get a copy of this message | ||
Hi,
I had the same problem as you. It seems that the HTTP PUT method isn't supported in php 4.
I have tried to implement it and it works for me (Apache 1.3.12, php 4.0.0 as a module on Solaris)
but
I didn't understand everything. I join the diff file to use with php-4.0.0.
I have a strange behavior : if I publish a html document, everything goes right : the put.php
script is called. But if I publish a php document, this is not the put script that is called but the
published php one: I don't know if it's a problem of apache configuration or of php ?
Regards
Ludovic Gauthier.
ludovic.gauthier@xrce.xerox.com
-----Original Message-----
From: lrlait@hyperion.gsfc.nasa.gov
[mailto:lrlait@hyperion.gsfc.nasa.gov]
Sent: Thursday, June 01, 2000 8:45 PM
To: php-dev@lists.php.net
Subject: [PHP-DEV] PHP 4.0 Bug #4763: PHP_PUT_FILENAME is gone?
From: lrlait@code916.gsfc.nasa.gov
Operating system: IRIX
PHP version: 4.0 Release Candidate 2
PHP Bug Type: Other
Bug description: PHP_PUT_FILENAME is gone?
The technique described in the PHP manual to handle
file upload requests using the HTTP PUT method does not
seem to work, possibly because the $PHP_PUT_FILENAME
variable mentioned there seems to have disappeared in PHP 4.
According to Chapter 18 in the PHP manual, PHP handles
PUT requests in a way similar to how it handles POST
requests, by stashing the uploaded file into a temporary
file. OK, I've done POST stuff in PHP before; I need
the name of the temporary file. And the manual says that
I can get the name of the temporary file in
$PHP_PUT_FILENAME.
But: (a) I find that $PHP_PUT_FILENAME never seems to
be set to anything
(b) grepping the PHP 4.0.0 source code for
'PHP_PUT_FILENAME' turns up no matches
(c) grepping the PHP 3.0.15 source code for
'PHP_PUT_FILENAME' turns up a match in
functions/post.c
I do see a mention of something called $HTTP_POST_FILES
in the 4.0.0 NEWS file and the source code, but I see no documentation on how to use it, or if it
can be used
for PUT method stuff.
And there is nothing in the TODO file about this either.
Documentation problem? Not-yet-reimplemented feature?
I am running PHP 4.0.0 as a module under Apache 1.3.12,
and I do have a "Script PUT" line in my apache config file.
--
PHP Development Mailing List <http://www.php.net/>
To unsubscribe, e-mail: php-dev-unsubscribe@lists.php.net
For additional commands, e-mail: php-dev-help@lists.php.net
To contact the list administrators, e-mail: php-list-admin@lists.php.net
Attachment: [application/octet-stream] php-4.0.0_php-4.0.0_with_put.diff
Attachment: [application/octet-stream] php-4.0.0_php-4.0.0_with_put.diff