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: [EMAIL PROTECTED]
>For additional commands, e-mail: [EMAIL PROTECTED]
>To contact the list administrators, e-mail: [EMAIL PROTECTED]
>
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]