PHP Classes

PHP Copy File to Another Directory: Copy a file from a given URL to server directory

Recommend this page to a friend!
  Info   View files Documentation   View files View files (2)   DownloadInstall with Composer Download .zip   Reputation   Support forum   Blog    
Last Updated Ratings Unique User Downloads Download Rankings
2023-03-07 (8 months ago) RSS 2.0 feedNot yet rated by the usersTotal: 61 All time: 10,357 This week: 78Up
Version License PHP version Categories
copy-files 1.0GNU General Publi...5PHP 5, Files and Folders, Web services, G...


This package can copy a file from a URL to the server directory.

It provides a script that presents a form to let the user enter the URL of a remote file and select a server-side directory.

The script can retrieve the remote file and store it in the directory selected by the user.

Picture of Joko Prasetyo
  Performance   Level  
Name: Joko Prasetyo <contact>
Classes: 4 packages by
Country: Indonesia Indonesia
Age: 53
All time rank: 433773 in Indonesia Indonesia
Week rank: 398 Up11 in Indonesia Indonesia Up
Innovation award
Innovation award
Nominee: 2x


PHP Copy Files from remote URL.

This is a very simple way to copy files from a remote server to the directory, simply enter the target URL on the form and select a directory location.

If unsupported file extensions you need to change or add a line like the following:

$valid_exts = array("php","jpeg","gif","png","doc","docx","jpg","html","asp","xml","JPEG","bmp","zip"); 

All file and scripts under licenses ( GNU GPL v2 or later ).

  Files folder image Files  
File Role Description
Accessible without login Plain text file copy-files.php Aux. Auxiliary script
Accessible without login Plain text file Doc. Documentation

 Version Control Unique User Downloads Download Rankings  
This week:0
All time:10,357
This week:78Up