PHPBuilder - EasyCopy



RSS Twitter
Snippets File Management

EasyCopy

by: Sergio Guamn
|
June 25, 2002

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>

Comment and Contribute

Your comment has been submitted and is pending approval.

Author:
Sergio Guamn

Comment:



Comment:

(Maximum characters: 1200). You have characters left.