ftp_get
(PHP3 >= 3.0.13 , PHP4 >= 4.0b4)
ftp_get --- 從FTP伺服器下載檔案
語法 :
int ftp_get(int ftp_stream, string local_file, string remote_file, int mode)說明 :
成功則傳回true,失敗則傳回false。
ftp_get( )從FTP伺服器獲得檔案remote_file,並且將它儲存在本地的local_file,傳輸的模式mode必須是FTP_ASCII 或是FTP_BINARY。