So.
With Netbeans
To work directly via ftp / sftp on Netbeans 6.8
- Open a new project and select "Php Application from a Remote Server"
- It still needs local storage for the files so you can work with them, so you need to specify the project name and its local folder
- The next step is the remote configuration. Click the Manage button to add a new connection by giving it a name and choosing sftp or ftp. Then enter the connection configuration to the source directory
- On the remote configuration screen, the boot directory should be the same as the "start directory"
- On the next screen you can get all the sources of the project
After each time you save the file, it will be automatically uploaded to the server. If you do not go into the project properties and check the "Upload files" box in the "OnSave" mode in the "Run configuration" section.
PS: I had problems with "Authenticity ... cannot be installed. RSA fingerkey warning ...", which constantly appeared every time I saved. If this is the case, simply create an empty and writable known_host file and specify it in the "Famous hosts files" property of your remote connection, then restart Netbeans (see netbeans forum )
Edit: At this point, the behavior is still not quite what I expect when you open the file. netbeans will open a local copy and overwrite the deleted copy when saved.
Edit2: Obviously, you cannot open the file directly from the server in Netbeans. You will need to download the file before modifying it.
Common decision
A workaround is to use a utility that will display the remote storage as a local drive. I know Fuse for Mac and Linux. I have not found it for Windows yet.
Jla
source share