note 13703 added to function.ftp-site.php
| From: | php-general at lists dot php dot net | Date: | Fri, 29 Jun 2001 13:36:27 +0000 |
| Subject: | note 13703 added to function.ftp-site.php | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-14740@lists.php.net to get a copy of this message | ||
site commands are extra-functionality provided by some ftp servers, and depend on the server :
e.g. trying "ftp> site help" (with an interactive ftp client) on a proftp server would
give :
214-The following SITE extensions are recognized:
RATIO -- show all ratios in effect
The following SITE commands are recognized (* =>'s unimplemented).
HELP CHMOD
214 Direct comments to admin@ftp.blahblah.fr
while with wu-ftpd on can typically get :
214-The following SITE commands are recognized (* =>'s unimplemented).
UMASK GROUP INDEX GROUPS
IDLE GPASS EXEC CHECKMETHOD
CHMOD NEWER ALIAS CHECKSUM
HELP MINFO CDPATH
214 blabla
Unfortunately, ftp_site only returns true or false. It would be nice to have a way to get the
server's reply in full : ftp_site('help') return 1, which pretty much useless.
Hope that helps,
Ivan
http://www.php.net/manual/en/function.ftp-site.php