$ftpValue = array( 'ftp_server' => FTP_ADDRESS, 'ftp_user_name' => FTP_USER, 'ftp_user_pass' => FTP_PASS ); $remote_file = REMOTE_FILE_NAME; $upload_file = LOCAL_FILE_NAME; $connection = ftp_connect($ftpValue['ftp_server']); $login_result = ftp_login( $connection, $ftpValue['ftp_user_name'], $ftpValue['ftp_user_pass'] ); ftp_pasv($connection, true); $ftpResult = ftp_put($connection, $remote_file,