輸入待尋字串
<?php
require(
"http://php.wilson.gs"
);
// 回首頁
echo
"http://php.wilson.gs/bible/group.php : FTP 檔案傳輸函式庫"
;
FTP 檔案傳輸函式庫
本函式庫共有 20 個函式
FTP 的全為 File Transfer Protocol,也就是檔案傳輸協定。利用本函式庫可以讓 PHP 也能處理 FTP 的相關功能。本函式庫需要 PHP 3.0.13 版之後才支援。
ftp_connect
:
開啟 FTP 連結。
ftp_login
:
登入 FTP 伺服器。
ftp_pwd
:
取得目前所在路徑。
ftp_cdup
:
回上層目錄。
ftp_chdir
:
改變路徑。
ftp_mkdir
:
建新目錄。
ftp_rmdir
:
刪除目錄。
ftp_nlist
:
列出指定目錄中所有檔案。
ftp_rawlist
:
詳細列出指定目錄中所有檔案。
ftp_systype
:
顯示伺服器系統。
ftp_pasv
:
切換主被動傳輸模式。
ftp_get
:
下載檔案。
ftp_fget
:
下載檔案,並存在已開的檔中。
ftp_put
:
上傳檔案。
ftp_fput
:
上傳已開啟檔案。
ftp_size
:
獲得指定檔案的大小。
ftp_mdtm
:
獲得指定檔案的最後修改時間。
ftp_rename
:
將檔案改名。
ftp_delete
:
將檔案刪除。
ftp_quit
:
關閉 FTP 連線。
[
上一頁
/bible/group.php
下一頁
]
echo
"
Copyright © 1999-2000
,
Wilson Peng
"
;
mail
(
"wilson@biglobe.net.tw"
,
"Feedback"
,
$message
);
?>