《PHP》『FDF函式庫』ftp_fput --- 從開啟的檔案上傳到FTP伺服器
ftp_fput
(PHP3 >= 3.0.13 , PHP4 >= 4.0b4)
ftp_fput --- 從開啟的檔案上傳到FTP伺服器
語法 : int ftp_fput (int ftp_stream, string remote_file, int fp, int mode)
說明 :
成功則傳回true,失敗則傳回false。
ftp_fput( )從開啟的檔案指標 fp直到檔案的結尾的內容上傳,結果儲存在FTP伺服器上的remote_file,傳輸的模式mode必須是FTP_ASCII 或是FTP_BINARY。