[PHP] Checking FTP server response

2001-08-20 Thread CC Zona
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? -- CC -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED]

Re: [PHP] Checking FTP server response

2001-08-20 Thread John Meyer
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

Re: [PHP] Checking FTP server response

2001-08-20 Thread hassan el forkani
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