Php Code To Move Uploaded File To Another Directory
________________________________________________________
I Use In This Tutorial:
- NetBeans IDE .
- XAMPP .
I Use In This Tutorial:
- NetBeans IDE .
- XAMPP .
Php Source Code:
<?php
if(isset($_POST['moveFile']))
{
$fileName = $_FILES['fileName']['name'];
$tempName = $_FILES['fileName']['tmp_name'];
if(isset($fileName))
{
if(!empty($fileName))
{
$location = "MyFilles/";
if(move_uploaded_file($tempName, $location.$fileName))
{
echo 'File Uploaded';
}
}
}
}
?>
<!DOCTYPE Html>
<html>
<head>
<title> PHP MOVE FILE </title>
</head>
<body>
<form action="php_move_upload_file.php" method="post" enctype="multipart/form-data">
<input type="file" name="fileName"><br><br>
<input type="submit" name="moveFile" value="Upload">
</form>
</body>
</html>
Update Contact :
No Wa/Telepon (puat) : 085267792168
No Wa/Telepon (fajar) : 085369237896
Email : Fajarudinsidik@gmail.com
No Wa/Telepon (puat) : 085267792168
No Wa/Telepon (fajar) : 085369237896
Email: Fajarudinsidik@gmail.com
atau Kirimkan Private messanger melalui email dengan klik tombol order dibawah ini :