I am using the native php ftp functions and noticed there doesn't seem to be a way to get the actual response back from the server I am connecting to (or trying to). Most or all of the functions simply return a boolean value.
It would be nice to know what the actual response from the server is to figure out the problem. I have used lower level sockets connections to perform the ftp functions and was able to get the response that way via fgets, but in rare cases, the connection would hang, so I'm reverting back to the native functions.
So does anyone know if I can retrieve the actual response from the ftp server whenever I send a command (i.e. 'password incorrect', 'access denied', etc. )?
Thanks
It would be nice to know what the actual response from the server is to figure out the problem. I have used lower level sockets connections to perform the ftp functions and was able to get the response that way via fgets, but in rare cases, the connection would hang, so I'm reverting back to the native functions.
So does anyone know if I can retrieve the actual response from the ftp server whenever I send a command (i.e. 'password incorrect', 'access denied', etc. )?
Thanks