<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" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
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: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> To contact the list administrators, e-mail: [EMAIL PROTECTED]
>
>


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to