When connecting to mysql, I have functions to get the relevant error message and error code, I see nothing of the sort in the list of ftp functions of PHP.
Is there a best practice to handle errors in FTP?
EDIT+CLARIFICATION: I think the best error messages are the system error messages + my own, is there a way to catch the system error messages?