Php over ftp (Netbeans, Eclipse, or any free IDE)

I am new to Netbeans. Is it possible to work directly with server files via sftp to avoid loading / unloading every time. Will intelisense work the same?

If possible, I cannot find how to do this or which plugin I should use. And if that is not what another free php IDE offers?

+7
php ide netbeans
source share
2 answers

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.

+14
source share

NetBeans seems to have added a few minor versions back: http://blogs.oracle.com/netbeansphp/entry/sftp_support_added .

Just confirmed that this support is in version 6.8, which I am launching.

Intelisense will work the same way, as long as you have all the ready-made objects within your project, it will not pull out libraries on the server. Download a local copy of any third-party libraries your project may require, and add them to your project, including the path to complete the code.

0
source share

All Articles