I\'m in the process of building an web app that will, besides other things, need to connect to a FTP server to download or upload files. The application is written in PHP an
if you don't have cURL installed (my host doesn't), you can use phpseclib:
http://phpseclib.sourceforge.net/documentation/net.html#net_sftp