Re: Cannot get uploaded file by PUT request vith PHP4 and Apache1.3

From: Date: Wed, 22 Aug 2001 14:39:16 +0000
Subject: Re: Cannot get uploaded file by PUT request vith PHP4 and Apache1.3
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-63907@lists.php.net to get a copy of this message
<form ENCTYPE="multipart/form-data" method="post" name="form" action="<?php echo $PHP_SELF;?>"> <input type="file" name="new_file" class="textfield"> </form> -=-=-=-=-=-=-=-=-=- <?php var_dump($HTTP_POST_FILES);?> or: <?php if (preg_match('/(http:\/\/.*)/', $HTTP_POST_FILES['new_file']['name'], $matches)){ echo $some_array[$HTTP_POST_VARS['f_newfilename']]['URL']=$matches[1]; } ?> ----- Original Message ----- From: "Martin" <Slouka@gsgpraha.cz> To: <php-general@lists.php.net> Sent: Wednesday, August 22, 2001 5:26 PM Subject: [PHP] Cannot get uploaded file by PUT request vith PHP4 and Apache1.3 > I wanted to make a script to allow publishing from Netscape Composer using > PUT request on my Apache server with PHP4. I have tried the example from > manual. But i can not get the uploaded file. The > $PHP_UPLOADED_FILE_NAME is not set and the > $PHP_PUT_FILENAME allso is not set. Vhen I send the HTTP/1.0 404 > Error header (so I could see the results)and dysplaied all the variables using > phpinfo(INFO_VARIABLES) i found there is no variable containing any > information about uploaded file. Now I have Apache 1.3.20 with PHP 4.0.6. > But i have tried it with the same httpd.conf and php.ini on earlier version > (Igess 1.3.13 and 4.0.2) and it did not work as well. > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net > For additional commands, e-mail: php-general-help@lists.php.net > To contact the list administrators, e-mail: php-list-admin@lists.php.net > >

« previous php.general (#63907) next »