|
发表于 2010-9-28 20:06:02
|
显示全部楼层
對方可能是用虛擬IP nat環境 ,要先設成 PASSIVE
; #FUNCTION# ====================================================================================================================
; Name...........: _FTP_Connect
; Description ...: Connects to an FTP server.
; Syntax.........: _FTP_Connect($l_InternetSession, $s_ServerName, $s_Username, $s_Password[, $i_Passive = 0[, $i_ServerPort = 0[, $l_Service = 1[, $l_Flags = 0[, $l_Context = 0]]]]])
; Parameters ....: $l_InternetSession - as returned by_FTP_Open().
; $s_ServerName - Server name/ip.
; $s_Username - Username.
; $s_Password - Password.
; $i_Passive - Optional, Passive mode.
; $i_ServerPort - Optional, Server port ( 0 is default (21) )
; $l_Service - Optional, I dont got a clue what this does.
; $l_Flags - Optional, Special flags.
; $l_Context - Optional, I dont got a clue what this does.
指定port
Global Const $INTERNET_DEFAULT_FTP_PORT = 21 |
|