Languages Perl & PHP & Python PHP Files  

Easy FTP Site Transfer

download download home home  
important code information
Sabeen malik
minimum requirements:
Easy FTP Site Transfer description

Hi everyone Found this script i created in PHP last year for easy server to server site transfer via FTP. Thought might put this up for you guys. I felt the need for this when a few clients of mine wanted to switch servers, it was a pain to download the files and then upload to the new server. So i created this. I uploaded the 2 scripts to the root directory of the source site like /public_html and called the script with the browser like: sourcesite/ftp_transfer.php and the script would upload all the files and sub-directories through FTP to the destination server set in the variables. Realtime progress is shown as to what is being done and the status of the transfer. Saved me alot of headache , time and bandwidth :) .. hope this helps someone else. A graphical interface has not been developed to make sure that even if you forget to remove the scripts after using them and some outsider stumbles upon the transfer script over the browser , he wont be able to use it to shift files to his own destination.

open ftp_transfer.php change the following variables below to suit your situation.

$main_dir_path = "."; //---- local path to ur stuff , keeping it to "." is better , meaning upload everything in this folder and below
$remote_root = "/public_html"; //---- remote path , where uploaded files/folders go
$domain = ""; //-- put in remote host or ip
$user = "ftpusername"; //-- put in remote domain username for ftp
$pass = "ftppassword"; //-- put in remote domain password for ftp

once done , upload these 2 files ftp_transfer.php and class.folders.php to source server. For instance if you want to transfer every thing on and the files of are in your /public_html folder, upload these to /public_html and call the ftp_transfer.php from your webbrowser like and if you setup the variables correctly , every thing will go smoothly.
Hope this helps someone.

File List:

Similar code
Simple Backend Php Script (Popularity: ) : This Allows for easy editing of php pages without the use of a database.
File Search in directory, and display (Popularity: ) : File Search in directory, and display, this one actualy works, friend was needing one for his portal, so i made this quick WoRks! , it'S SimplE, And Easy To USe!!
Zorex PHP Explorer (Popularity: ) : PHP Explorer is a server side file explorer for server and also PC. It include the function of executing php script and files download from server or PC. Please read the readme before using it. Author is not resposible for ...
A basic Unzipper code (Popularity: ) : To unzip files to a folder keeping directry structure
Automatic PHP image gallery (Popularity: ) : automatic list image files and its independent of file names.very small,fast and useful code.
User reviews

1 user review. Read now.

Write a review:
1 2 3 4 5 6 7 8 9 10
1=poor 10=excellent
Write review*
Your name*
  (Comments are moderated, and will not appear on this site until the editor has approved them)
Rate me
supported os
downloads 121
version 1.0
size in Kb 3
popularity   3940/7916599
user rating 7/10

New Code
Popular Code