We choose to try and use ftp as it allows us to have a solution that would work on a much wider range of hosts (various ISPs, with PHP5 & Apache), while letting us modify files on the server, without ending up with a big permission mess.
One of the things our project needs to be able to provide is the ability for the user to both use our browser based CMS to modify the site, as well as a normal ftp program (SFTP, etc). If files are being generated on the server with php, they will end up being the user/group from Apache, meaning that our clients wouldn't be able to modify those files with a traditional ftp program.
Using PHP's FTP functions allows us to solve all of our issues, except perhaps a potential security problem. I've done massive digging around on the web, but haven't been able to find any relevant infos regarding this particular use of ftp.
Another question: is it possible to use the PHP FTP funcs over SSL?
Cheers,
-Chris