Php-mysql Course

FTM2S is a simple File Transfer Manager between two Servers made with Ajax and PHP. This web application can be used to transfer (copy) files and folders from one server to another with the FTP PHP extension; also, it can create new directory, rename and delete files and folders on both servers.

• To download the script, click on this link: Download - File Transfer Manager (30 KB).

For comments, questions, or any issue related to this application, write on Forum, in the "Scripts from Website" category.

Requirements

- PHP 5.4+ with ftp extension.
- Web Brawser with JavaScript enabled.

Features

- Admin login system, and responsive admin panel.
- Transfer /Copy files and folders between a FTP and website /Local server.
- Resumes unfinished copied file.
- Create new folder on Local and FTP server.
- Rename files and folders on both servers.
- Delete files and directories on FTP and website server.

Screenshoots - FTM2S

- Click on images
FTM2S script FTM2S connected to ftp FTM2S create folder FTM2S copy FTM2S copy FTM2S rename FTM2S delete

Usage

  1. Download the archive with the script from the link above.
  2. Open to edit the "config.php" file (in the "incls/" folder), and add your Admin name and password in the $admin array.
  3. Copy the "ftm2s" folder with all its content in your server.
  4. Set writable permissions for the file "copied.json", CHMOD 0755 (or 0777).
  5. Access the "ftm2s/index.php" page in your browser.
  6. //your_domain/ftm2s/index.php
    
  7. Add your Admin name and password to login in the script.
  8. On the left side are displayed the folders and files of the website where this application is installed (named Server-Local).
    - On the right side you can login to a FTP server and navigate through the directories and files added in that server.
  9. Use the buttons from above of each side to transfer files and folders from one server to another, or to create new folder, rename and delete.

Other Specifications

The same Upload, Download, Rename and Delete buttons are used for directories and files.
When a file is checked, the function of the button is applied to the checked file/s, otherwise, if no file is checked, the function of the button is applied to the current selected directory.
- In the "copied.json" file, the script saves temporary a list with current transferred (copied) files, to can be gradually displayed in page with Ajax. After the copying is finished the list is deleted.
- Maximum php time execution limit is set to 3 hours (10800 sec.), in "ftm2s.php" (line 6).
- FTP timeout is set to 45 minutes (2700 sec.), in "ftm2s.php" (line 40).

• This script is Free, and Open Source. You can modify and use it for personal usage (not for comercial usage).

Daily Test with Code Example

HTML
CSS
JavaScript
PHP-MySQL
Which HTML element can be used to embed a SWF flash content?
<object> <div> <script>
<object type="application/x-shockwave-flash" data="file.swf" width="500" height="250">
 <param name="src" value="file.swf" />
 Your browser not support SWF.
</object>
Which CSS pseudo-class adds a style to an input form field that has keyboard input focus?
:active :focus :hover
input:focus {
  background-color: #88fe88;
}
Click on the instruction which converts a JSON string into a JavaScript object.
JSON.stringify(javascript_object) object.toString() JSON.parse(json_string)
var jsnstr = '{"url": "http://coursesweb.net/", "title": "Web Development Courses"}';
var obj = JSON.parse(jsnstr);
alert(obj.url);
Indicate the PHP function which can be used to create or write a file on server.
fopen() file_put_contents() file_get_contents()
if (file_put_contents("file.txt", "content")) echo "The file was created";
else echo "The file can not be created";
FTM2S - File Transfer Manager between two Servers

Last accessed pages

  1. Courses Web: PHP-MySQL JavaScript Node.js Ajax HTML CSS (142308)
  2. Get and Modify content of an Iframe (32367)
  3. $_GET, $_POST and $_REQUEST Variables (33884)
  4. Ajax-PHP Chat Script (49508)
  5. JavaScript Course - Free lessons (31647)

Popular pages this month

  1. Courses Web: PHP-MySQL JavaScript Node.js Ajax HTML CSS (311)
  2. The Mastery of Love (48)
  3. CSS cursor property - Custom Cursors (36)
  4. Read Excel file data in PHP - PhpExcelReader (35)
  5. PHP-MySQL free course, online tutorials PHP MySQL code (31)