Use ftp_raw() (PHP 5+) instead of ftp_site() if you need the results of the remote command.
![]() | ftp_site说明bool ftp_site ( resource ftp_stream, string cmd )ftp_site() 函数向 FTP 服务器发送由参数 cmd 指定的命令。SITE 命令是非标准化的,不同的服务器不尽相同。主要用于处理文件权限以及组成员等事情。 如果成功则返回 TRUE,失败则返回 FALSE。 参见 ftp_raw()。 ![]()
Marc
05-Aug-2003 10:02
Use ftp_raw() (PHP 5+) instead of ftp_site() if you need the results of the remote command.
webmaster at beezm dot net
18-Jun-2003 02:52
I wrote some functions for an ftp server for windows called GuildFTPd.
to at mail dot isec dot pt
21-Nov-2002 09:20
Hya,
daemorhedron
17-Nov-2002 09:32
I'd like to follow up with Ivan's observation there. Unless I am missing the obvious, which is entirely possible of course, this command is quite useless unless it returns the data from the SITE <foo> request.
30-Jun-2001 12:36
site commands are extra-functionality provided by some ftp servers, and depend on the server :
| ![]() |