| Current Path : /var/www/cesa.co.za/members/saaceadmin/ |
| Current File : /var/www/cesa.co.za/members/saaceadmin/upload2.php4 |
<html>
<head>
<title>Untitled Document</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
</head>
<body bgcolor="#FFFFFF" text="#000000">
<form action="upload2.php4" method=post enctype="multipart/form-data">
submit this file: <input type=file name="userfile" size="20"><br>
<input type=submit><br>
</form>
<?
if(!empty($userfile)) {
//copy the file
copy($userfile, "/php/www/files/myfile.txt");
//destroy the uploaded file
unlink($userfile);
//display message
echo("file uploaded");
}
?>
</body>
</html>