Remote Synchronization is a feature of PHP projects set to run as Remote Web Site, over FTP or SFTP. Remote Synchronization allows you to compare your local version of a project with the version on a server and to diff, upload, or download files so the local and remote versions of the project match. The Remote Synchronization dialog opens from the context menu (right click) of the Source Files folder of a PHP project.
The IDE can perform one of several operations when synchronizing a file. The table of operations shows which operation the IDE plans to perform during synchronization. In this section you can select which planned operations the table shows.
Download the remote version. Overwrite the
local version if one exists.
Upload the local version to the server. Overwrite the remote version if one exists.
Do not synchronize the file.
Delete both local and remote versions of the file.Click Check All to show all planned operations. Click Uncheck All to show no planned operations.
The table of operations shows warning icons for problems associated with operations. In this section you select which problem icons to display.
File Conflict icons indicate that both the local and the remote version of the file changed since the last synchronization.
The path to a local file is the path to a
directory on the server, or the reverse. For example, there's a local file called /my/file but on the server /my/file/ is a directory.
File is only a symbolic link pointing to another file.Click Check All to show all warnings. Click Uncheck All to show no warnings.
In this table you can review and change operations that the IDE plans for files, on a per file basis.
The table contains the following columns, from left to right:
Additional information appears at the bottom of the table for any rows you select. For example, if you select 4 rows, you see a summary of the operations and problems for those rows, such as "3 downloads, 0 uploads, 1 no-op, 0 deletions, 0 errors, 0 warnings." If you select a row and there is an error associated with the operation in that row, details about that error appear, such as "Error (FILE_NAME): Non-existing file cannot be updated."
Beneath the Review Planned Operations on Files table is a set of buttons for diffing between local and remote versions of a file and changing the planned operation for a file. Select a row in the table to activate these buttons.
Diff the local and
remote versions of the selected file. Results of the diff appear in a new dialog.
Change the planned operation to "no-op."
Change
the planned operation to "Download remote version."
Change the
planned operation to "Upload local version."
Change the
planned operation to "Delete both local and remote versions."
Reset all
changes to the operation.Tick this box to show a summary of synchronization operations before synchronization starts. Review the operations in the summary dialog. Click OK in the summary and the synchronization progress dialog opens.
Press this button to begin synchronization. The button is greyed out if there are any unresolved errors. If the Show Summary Before Start box is ticked, a summary of synchronization operations appears. Otherwise synchronization begins and the synchronization progress dialog opens.