How can I ensure that the php code is successfully updated to the server?

Source: Internet
Author: User
I am using a very stupid method, that is, every time I use the ftp tool to transfer the modified php or other files to the server, the network is often unstable and the transfer of half of the files fails, failed files cannot be deleted or read, and pages cannot be opened for a long time... I am using a very stupid method, that is, every time I use the ftp tool to transfer the modified php or other files to the server, the network is often unstable and the transfer of half of the files fails, failed files cannot be deleted or read. There are often pages that cannot be opened for a long time. I would like to ask how to update php code professionally?

Reply content:

I am using a very stupid method, that is, every time I use the ftp tool to transfer the modified php or other files to the server, the network is often unstable and the transfer of half of the files fails, failed files cannot be deleted or read. There are often pages that cannot be opened for a long time. I would like to ask how to update php code professionally?

Professional is to use server deployment tools. A simple and professional method is to use git and other version tools pull for repo and then update for deployment.

Version Control, svn or git

It seems like a virtual space, right? In this case, ftp is easy to lose files. It is best to compress the files into a compressed package and then decompress them.

After SegmentFault reconstruction last yearPharYou may need a package for each version.

Official documents: http://php.net/manual/zh/book.phar.php

The subject can try to use IDE, such as Zend Studio. You can use svn or git mentioned above or use SSH to Open remote folders, which is very convenient.

Use svn to create a formal database. Once svn is up on the server

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.