Answers for "move files in php"

PHP
3

php move file

//Use the rename() function.
rename('first_location/image1.jpg', 'new_location/image1.jpg');
Posted by: Guest on July-15-2020
0

move uploaded file in php

<?php
   if (move_uploaded_file($_FILES['userfile']['tmp_name'], "/documents/new/")) {
      print "Uploaded successfully!";
   } else {
      print "Upload failed!";
   }
?>
Posted by: Guest on June-06-2020

Browse Popular Code Answers by Language