coding brain fade
| From: | Jerry Lake | Date: | Thu, 10 May 2001 23:50:59 +0000 |
| Subject: | coding brain fade | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-52369@lists.php.net to get a copy of this message | ||
umm, what am I missing ?
I can't get the userfile to
name itself when copying...
<?php
$test = $HTTP_POST_FILES['type'];
echo $test;
echo "<br>";
echo $userfile;
copy($userfile, "c:/apache/htdocs/".$userfile);
} else {
echo "Possible file upload attack: filename '$userfile'.";
}
?>
Jerry Lake
Interface Engineering Technician
Europa Communications - http://www.europa.com
Pacifier Online - http://www.pacifier.com