Version: 2.1

Type: Sample Code (HOWTO)

Category: File Management

License: GNU General Public License

Description: A uploader with an easy short code



<?php
if($userfile) {
copy($userfile, "/your/path/to/directory/$userfile_name"); echo "Successfully Added!<br>\n";
//$username : contains the name of TMP file, $usrfile_name : it's the real name of file
}
?>
<form action="<?php echo $PHP_SELF ?>" method="post" name="upload">
File to Upload: <input type=file name=userfile><BR>
<input type=submit value="Upload">
</form>