I now use a very stupid method, that is, each time with the FTP tool to the modified PHP or other files to the server, often the network is unstable, to half of the file transfer failed, failed files can not be deleted, can not read, often have a page so long can not open, I would like to ask the professional update of the PHP code method is how?
Reply content:
I now use a very stupid method, that is, each time with the FTP tool to the modified PHP or other files to the server, often the network is unstable, to half of the file transfer failed, failed files can not be deleted, can not read, often have a page so long can not open, I would like to ask the professional update of the PHP code method is how?
The professional is to use the Server Deployment tool, simple and professional method is to use Git and other version tools pull repo and update deployment.
Version control, SVN or Git
Listen to your statement as if it is a virtual space, so that the FTP is very easy to lose files, it is best to hit the compressed package upload and then unzip
Last year Segmentfault was used after refactoring Phar
, and each version hits a package, maybe you need this stuff.
Official Document: http://php.net/manual/zh/book.phar.php
Master can try to use the IDE, such as Zend Studio, can be said above the SVN or git, also can open the remote folder via SSH, very convenient.
Use SVN to build a formal library, every time just go to the server svn up a bit