TokyoDisco

Renaming

Dec 16th, 2015
94
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.22 KB | None | 0 0
  1. <?php
  2. $OldName = $_GET['file'];
  3.  
  4. $Dir = $_GET['dir'];
  5. $Name = $_GET['name'] ;
  6. $ext = $_GET['ext'];
  7.  
  8. $NewName = $Dir + $Name ;
  9.  
  10. rename($OldName, $Dir.$Name.".".$ext );
  11.  
  12. header ("location: testF.php") ;
  13.  
  14.  
  15.  
  16.  
  17. ?>
Advertisement
Add Comment
Please, Sign In to add comment