I coudn't find the solution for Php deployment to remote server using FTP from SVN after each commit. How can I upload to server by FTP the only added or edited files and delete the deleted files from SVN I think about write post-commit script...
Good question!
I'm not sure a PHP-only approach to syncronizing files that way exists.
I would usually use third-party FTP sync tools like rsync
or ScriptFTP (commercial) to do the syncronizing part.
Take a look into phing, there are a number of FTP extensions (called "tasks") for it. I have no real world experience with them though.
This blog post offers a number of ideas and approaches: Using phing to sync files with shared hosting
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With