|
|
|
try this as the .html file:
<FORM ENCTYPE="multipart/form-data" ACTION="upload.php3" METHOD=POST>
<!-- <INPUT TYPE="hidden" name="MAX_FILE_SIZE" value="150000"> -->
<INPUT NAME="logofile" TYPE="file" SIZE="30">
<INPUT NAME="pic1file" TYPE="file" SIZE="30">
<INPUT NAME="pic2file" TYPE="file" SIZE="30">
<INPUT NAME="mapfile" TYPE="file" SIZE="30">
<INPUT TYPE="submit" VALUE="Send File(s)">
<input type="reset" value="reset"></TD>
</FORM>
try this as the .php3 file :
if ($logofile == "none" && $pic1file == "none" && $pic2file == "none" &&
$mapfile == "none")
{
echo("You must upload at least one file");
echo"<meta http-equiv=refresh content=\"3; URL=upload.html\">";
exit();
}
copy($logofile,"$homepagepath/$remote_user/logo.gif");
copy($pic1file,"$homepagepath/$remote_user/pic1.gif");
copy($pic2file,"$homepagepath/$remote_user/pic2.gif");
copy($mapfile,"$homepagepath/$remote_user/map.gif");
unlink($logofile);
unlink($pic1file);
unlink($pic2file);
unlink($mapfile);
|
|
| Remote File Saving with PHP - Download and serve a remote file. The content of the file will be updated at fixed intervals. Categories : PHP, Filesystem, Cache, Sockets, HTTP | | | Simple pipe delimited file export program that downloads to a local machine Categories : PHP, Filesystem, Databases, MySQL, HTTP | | | Remote File Size Categories : PHP, Filesystem, HTTP, Sockets | | | Class that allows the PHP developer to create and manage UNIX like password files suitable for use as Apache authentication password files.
Categories : HTTP, PHP, PHP Classes, Filesystem | | | Force file download Categories : PHP, Filesystem, HTTP, Program Execution | | | A simple downloader Categories : PHP, Filesystem, HTTP | | | Easy upload class Categories : PHP Classes, Filesystem, HTTP, PHP | | | How to let a user download a picture by clicking on it instead of needing to right click and Save-As. Categories : HTTP, PHP, HTML and PHP, Filesystem | | | Script to check values being submitted by POST or GET method from a form. This script may help diagnose what variables are being supplied by a browser to other php scripts. Categories : HTML, Variables, Debugging, PHP, HTTP | | | A flat file counter Categories : PHP, Cookies, Filesystem, Beginner Guides | | | Show Source with Line Numbers Categories : PHP, Regexps, Filesystem | | | The following snippet gives complete info about all submitted
HTTP_POST_VARS and HTTP_GET_VARS Categories : Variables, HTTP, PHP | | | include php3 files Categories : Filesystem, PHP, Apache, Web Servers | | | Random Image Display Categories : PHP, Filesystem, Graphics, HTML and PHP | | | PHP based Contact email form with multiple recipients, text file based, supports departments. Categories : PHP, Email, Beginner Guides, Filesystem | |
|
|
|