0xV3NOMx
Linux ip-172-26-7-228 5.4.0-1103-aws #111~18.04.1-Ubuntu SMP Tue May 23 20:04:10 UTC 2023 x86_64



Your IP : 3.138.134.163


Current Path : /var/www/misc/public_html/live100/
Upload File :
Current File : /var/www/misc/public_html/live100/filedownload.php

<?php 
                // define some variables
        $folder_path = "";
        $local_file = "c:\LT\file.jpg";
        $server_file = "live100/file.jpg";
       
        //-- Connection Settings
        $ftp_server = "72.167.46.92"; // Address of FTP server.
        $ftp_user_name = "sandeep"; // Username
        $ftp_user_pass = "logisys@159"; // Password
        #$destination_file = "FILEPATH";
       
        // set up basic connection
        $conn_id = ftp_connect($ftp_server);
       
        // login with username and password
        $login_result = ftp_login($conn_id, $ftp_user_name, $ftp_user_pass);
       
        // try to download $server_file and save to $local_file
        if (ftp_get($conn_id, $local_file, $server_file, FTP_BINARY)) {
            echo "Successfully written to $local_file\n";
        } else {
            echo "There was a problem\n";
        }
       
        // close the connection
        ftp_close($conn_id);
?>