I have just installed the PhpStorm trial to see if I can do the following:
I build websites in the Modx cms framework. Some of the php is part of modx and generally not to be touched so as to allow smooth updates. Other custom php files (in the same dir structure) are website-specific and are created and manually updated as part of web development.
I previously edited these custom files via ftp using PSPad, a simple code editor with built-in ftp support. I connected to the ftp account and viewed the file tree as if viewing local files. When I edited and saved a file it automaatically overwrote the file on the server. (individual files are downloaded as they are opened, local copies edited and then uploaded to replace the original. Local copies are discarded on closing the program, so remote files are the master copies).
Now I have moved to a dedicated server supporting only ssh (for security). I want to carry out php file edits as before, but via sftp.
My questions are:
1. Can I set up a project which allows me to manage only the files of my choosing, as opposed to the whole CMS file structure? (So as to avoid down-/up-loading/synchronising files that I don't need/want to).
2. Remote files may occasionally be edited my other means (eg via Plesk or Modx), in which case my PhpStorm local files would effectively be out of date. Can PhpStorm be configured to compare file dates before overwriting the remote only with newer local versions?
I hope I've explained that clearly enough. If not please fire questions at me and I'll try to be clearer.