Re: Checking FTP server response
| From: | hassan el forkani | Date: | Mon, 20 Aug 2001 22:19:34 +0000 |
| Subject: | Re: Checking FTP server response | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-63584@lists.php.net to get a copy of this message | ||
if you just want to check for the existence of the server
a ping command is sufficient,
if you want to have extended info on the server you should connect to it using standard ftp commands(http://www.ualberta.ca/CNS/HELP/filetran/ftp-commands.html) opening a socket and...
regards
At 01:19 21/08/01, you wrote:
At 03:03 PM 8/20/01 -0700, CC Zona wrote:To test for a valid http address, I open a socket, pass a HEAD or GET request, and look for a status code in the response headers. What should I send to an FTP server to do a similar test?Why not just try and connect to it? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net For additional commands, e-mail: php-general-help@lists.php.net To contact the list administrators, e-mail: php-list-admin@lists.php.net