1

I am wokring on a PHP project, which is located on an Ubuntu server to which I have SSH access.

Sometimes I code in Ubuntu and sometimes in Windows (mostly Ubuntu).
Do you have any idea how to connect to the project on the server and edit the files. I searched the net, got some ideas like using SSHFS, but I want something which works both on Linux and Windows.

I also found Eclipse Remote System Explorer, but I think it is not that stable and might cause problems (correct me if I am wrong).

Basically I (like) code in Eclipse, but I can move to Netbeans or any other good (but Free) IDEs, if I have to.

Thanks.

Omid Kamangar
  • 5,768
  • 9
  • 40
  • 69

4 Answers4

2

Aptana Studio 3 has everything you need

  • ssh w/ built in terminal
  • sftp (connect FTP through SSH)
  • Eclipse Based
  • GIT/SVN support
  • PHP Support
  • etc...

Related to your comment:

Community
  • 1
  • 1
Phill Pafford
  • 83,471
  • 91
  • 263
  • 383
  • @SeanJA: What's you issue with formatting HTML and PHP nicely? Maybe you just can handle an IDE :) – 2ndkauboy Jun 17 '11 at 18:54
  • For me, too. I never had an issue. You just have to type correctly or set up the formatting settings to your defaults. – 2ndkauboy Jun 17 '11 at 18:57
  • @Phill Pafford: This sounds like what I want, but can you give me some clues to start? Like how to set up SSH with Aptana? Thanks. – Omid Kamangar Jun 17 '11 at 19:20
  • @Kau-Boy Never had problems with Netbeans... but when I right click and select the "format" option in Aptana it screws up everything that was screwed up already, but worse (this is old ul > table > table > table > ul > table layout). – SeanJA Jun 17 '11 at 21:40
  • @Kau-Boy I would gladly give it another try... do you have a settings export lying around somewhere? – SeanJA Jun 17 '11 at 21:41
2

At my company each developer has a windows PC to work from with a linux dev VM that mirrors production's setup. The linux servers have a samba share setup to the /var/www directory. There are two common workflows we follow.

  1. The developer checks out the code repo to their local PC. They use Netbeans (previously Eclipse) to edit the files and an IDE feature copies the edited file to the webserver via samba.
    • Pro: fast
    • Con: webserver can get out of sync, only one way syncing: windows -> VM
  2. The developer checks out the code repo to the samba folder. They open the code from the IDE and edit from there.
    • Pro: two way syncing, can edit from server if need be, can use any editor/IDE
    • Con: slow

We ran for a while under setup 2, but quickly found that it was far too slow for us so most use setup 1. The only exceptions are remote teams that find it easier to connect directly to the VMs.

Paul DelRe
  • 4,003
  • 1
  • 24
  • 26
1

I use eclipse with Aptana. There you can easily use the build in FTP support to connect to the server.

Another solution would be mouting the server directory to your PC. On Windows systems you can use something like WebDrive.

Community
  • 1
  • 1
2ndkauboy
  • 9,302
  • 3
  • 31
  • 65
1

I use Emacs with Tramp plug-in.