Gex commented on a Page, Secure File Copy using FTP through HTTP  -  Apr 25, 2007
if((!$conn_id) || (!$login_result))
    {
            echo \"FTP connection has failed!\";
            echo \"Attempted to connect to $ftp_server for user $ftp_user\";
    }

this block of code should be followed by exit(); to halt the rest of code...if am write..the rest of code will be executed if the connection to ftp failed

 Respond  
Are you sure you want to unfollow this person?
Are you sure you want to delete this?
Click "Unsubscribe" to stop receiving notices pertaining to this post.
Click "Subscribe" to resume notices pertaining to this post.