FTP class for pure PHP