Answers for "PHP move uploaded file to another server"

PHP
0

php move_uploaded_file

$upload_folder = "upload/";
$file_location = $upload_folder . basename($_FILES["fileToUpload"]["name"]);

     if(isset($_FILES['fileToUpload'])){ 

        if(move_uploaded_file($_FILES['fileToUpload']['tmp_name'], $file_location)){
            
            echo 'Files has uploaded'; 
        };

     }
Posted by: Guest on November-17-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
0

move uploaded file in php

move_uploaded_file(file_path, moved_path)
Posted by: Guest on June-06-2020

Code answers related to "PHP move uploaded file to another server"

Browse Popular Code Answers by Language