1. Introduction:
Phpstorm is a lightweight and handy PHP IDE that provides smart code completion, fast navigation, and instant error checking to greatly improve coding efficiency. It is a commercial PHP integrated development tool, with its unique development convenience, a short period of time won the favor of a large number of phper.
FTP is the English abbreviation for file Transfer Protocol (document Transfer Protocol), while Chinese is called "the Protocol". A two-way transmission of control files for use on the Internet. At the same time, it is also an application (application). There are different FTP applications based on different operating systems, and all of these applications adhere to the same protocol to transfer files. In the use of FTP, users often encounter two concepts: "Download" (Download) and "Upload" (Upload). A "Download" file is a copy of a file from a remote host to your computer, and an "upload" file is a file that copies files from your computer to a remote host. In popular language, users can upload files to a remote host via a client program or download files from a remote host.
Phpstorm has FTP capabilities, so there is no need to download other FTP software (there is no time to feel the Phpstorm function of the intrepid. )。 The following is a detailed procedure for using the FTP feature in Phpstorm.
2. Operation Steps:
2.1 Open Cofiguration
Open Phpstorm and open a local project. Find tools->deployment->cofiguration in turn, and click Enter.
2.2 Fill in the FTP information
In sequence, fill in the project name, FTP host address, username, password, the project's browser access address, and then click Test FTP Connection test whether the connection succeeded. Click Mappings, configure the project local address, other defaults, note the remote address that has a slash. Click OK.
2.3 View Remote project files
Locate Tools->deployment->browse Remote Host in turn, and click Enter. Select the remote host name you just created to view the remote file. So far, the FTP configuration in Phpstorm has been completed.
3. Common methods of operation:
3.1 How the date behind the remote file is displayed.
Click on the small gear in the upper right corner and choose Show Date.
3.2 How to download remote files to local.
Right-click on the remote file and download from here to complete the download.
3.3 How to upload files to a remote server.
Right-select Remote file, click Upload here, that is, complete file upload.
3.4 How to compare the difference between a remote file and a local file.
Right-click on the remote file to view the file contrast by clicking Compare with the local Version.
3.5 Local file changes are much more, how to know which files have been changed.
Right-click on the remote folder you may have changed, clicking Sync with local to search for the changed files yourself. Procedure can be modified in the editor.
4. Summary:
Phpstorm in the operation of FTP there are many, such as local editing, real-time automatic synchronization to the remote server, eliminating the manual upload operation. The individual does not like automatic synchronous upload, always feel a kind of out of control feeling, after all, need to change the place is not too much, but also consider SVN version control problem.
The common operation is listed for the remote file right click, the same local file can also right-click, the same function, but will change a description. Other operations to explore it, have a good operating skills please put it in the comments below. These are my actual operation, if you encounter problems in your operation, please put it in the comments.
5. Problems that may be encountered:
If you follow the above, you cannot connect to the remote host by clicking the test connection. Please try clicking on advanced options-to check passive mode (passive).