note 15253 added to function.copy
| From: | sandro at alvaresoft dot cjb dot net | Date: | Mon, 03 Sep 2001 12:45:25 +0000 |
| Subject: | note 15253 added to function.copy | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-17563@lists.php.net to get a copy of this message | ||
Welcome...Veja como facilismo pra vc bem entender, como funcionamento COPY :)
Crie ENVIAR.PHP
<?
$arquivo = $HTTP_POST_FILES['arquivo']['name'];
$temp = $HTTP_POST_FILES['arquivo']['tmp_name'];
if ($arquivo) copy($temp, "".$arquivo);
?>
<form enctype='multipart/form-data' action=<? echo $PHP_SELF ?> method=post>
Enviar de arquivo: <input name='arquivo' type='file'>
<input type='submit' value='Enviar'>
</form>
--------------------------------------
Sandro(DarkRider)
Webmaster & Tecnico de Informatica
Alvares Software in Brazil
http://www.alvaresoft.cjb.net
sandro@alvaresoft.cjb.net
ICQ #57100004
http://www.php.net/manual/en/function.copy.php