update ftp.php

added setPassiveMode for changing FTP passive mode to on or off. Can't transfer files when FTP mode is incorrect.
added exception to getConnection() when connection fails to FTP server.