Introduction
PHP SimpleSix Uploader is a simple file uploader written in PHP, can be used in different modules and it can be designed according to your needs.
Using the code
Here is some of the PHP code:
<?
$file = $_FILES['file'];
$name = $_POST['name'];
$path = $_POST['path'];
$upload = $_POST['upload'];
if(isset($upload)){
if($file['name']){
if($name){
if(strlen($path) > 5){
move_uploaded_file($file['tmp_name'], $path.$name);
echo "<font color=green>File successfully uploaded!</font>";
} else
echo "<li> Please enter the path!";
} else
echo "<li> Please put the file name!";
} else
echo "<li> No file to upload";
echo "<br /><hr />";
}
?>