Advertisement
m0d52

upload

Oct 28th, 2018
184
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.23 KB | None | 0 0
  1. <?php
  2.  
  3.  
  4. $targetFile = 'uploads/' . basename($_FILES["file"]["name"]);
  5.  
  6. if (move_uploaded_file($_FILES["file"]["tmp_name"], $targetFile)) {
  7.     //успешно
  8.     header("Location: http://localhost:63342/facebattle");
  9. }
  10.  
  11.  
  12.  
  13. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement