PHPBuilder - EasyCopy

RSS Twitter
Snippets File Management


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

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">

Comment and Contribute

Your comment has been submitted and is pending approval.

Sergio Guamn



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