We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 37099
    • 338 Posts
    What PHP/code editor do people use?

    I’d like one that you can save files to a remote server via ftp ie so in effect it’s like you actually working on the remote machine.

    Cheers
    Mke
      • 28042 ☆ A M B ☆
      • 24,524 Posts
      Your FTP client should be able to manage that; double-click on a file and it automatically opens in your editor and when you save it’s automatically uploaded.

      Of course, there are also editors that do the same thing from the other side, so there are probably dozens of options.
        Studying MODX in the desert - http://sottwell.com
        Tips and Tricks from the MODX Forums and Slack Channels - http://modxcookbook.com
        Join the Slack Community - http://modx.org
        • 37099
        • 338 Posts
        Thanks for the suggestion.

        Tried it with my ftp client Filezilla and two two word processors: conText and wordpad but it only saved the file to the server when I closed the word processor, would have been cool otherwise. I’ll try upgrading Filezilla - it’s quite an old version....
          • 3749
          • 24,544 Posts
          I use NuSphere’s PhpEd, which will FTP files from inside the editor (but it’s not free).

          NetBeans is very popular (and free) and I believe it will do that as well.

          That said, I usually use Susan’s method and FTP with an old version of WS_FTP, which puts me in the proper directories, both local and remote, when it makes the connection.

            Did I help you? Buy me a beer
            Get my Book: MODX:The Official Guide
            MODX info for everyone: http://bobsguides.com/modx.html
            My MODX Extras
            Bob's Guides is now hosted at A2 MODX Hosting
            • 28042 ☆ A M B ☆
            • 24,524 Posts
            For an FTP client, I use Cyberduck (an OS X application), which is interesting in being fully OS X integrated; it only has the one window for the remote filesystem and uses the Finder for the local filesystem. In fact, I can drag-and-drop any file from any Mac application into the Cyberduck window and it will upload the file. If I do a screen capture of the Manager in action for one of my site’s articles I can simply drag the image from the screen capture application (I use SnapNDrag since it creates .jpg images) to the Cyberduck window and upload the image in one step. Cyberduck will use the OS’s default application for accepting dowloaded files according to the file type, for example when I double-click a .jpg image it automatically opens my GraphicConverter with the image loaded since I have that application set on my OS X to be the default image handling application. I just noticed that the latest version of Cyberduck has Google Docs access built-in.

            For an editor I prefer SubEthaEdit, but it went non-free some years ago so I use Smultron. Not suitable perhaps for complex development environments, but for simple file editing it’s great, and works well with both Cyberduck as its default editing environment as well as with Firefox’s It’s All Text add-on.
              Studying MODX in the desert - http://sottwell.com
              Tips and Tricks from the MODX Forums and Slack Channels - http://modxcookbook.com
              Join the Slack Community - http://modx.org
              • 37099
              • 338 Posts
              I found two free editors ( for windows ) that will ftp: HTML-kit and Devphp. Unfortunately they only ftp and not sftp. For security I really want to sftp. I found mention of something called an sftp-ftp-bridge that somehow converts your ftp to sftp but that sound like it’s getting a bit convoluted.

              BobRay, can NuSphere’s PhpEd use sftp?

              I’ll have a look at NetBeans next ...

              Mike
                • 16278
                • 928 Posts
                I use RapidPHP from http://www.blumentals.net/ for editing both PHP and HTML, in conjunction with It’s All Text in Firefox. Clicking on the Edit button that appears at the top of textarea boxes in any web page loads the text into RapidPHP for me (left click = as HTML, right-click lets me select PHP, customizable in It’s All Text).

                I find it particularly useful to open CSS files via FTP and edit them, almost as handy as testing things out in Firebug (when you can easily lose track of your experimental edits by doing a refresh).

                RapidPHP is not very expensive and has some handy features, including opening and saving files via FTP, and customizable keyboard shortcuts for things like MODx placeholder brackets. The dialog for setting up an FTP connection has the option for SFTP (SSH), though I’ve never tried it.
                smiley KP
                  • 36416
                  • 589 Posts
                  Quote from: ganeshXL at Jun 29, 2010, 07:35 AM

                  I’m using EditPlus + CuteFTP. EditPlus has FTP cababilities too, but it’s rather basic (you can’t CHMOD etc.).

                  Hey, its EditPlus making my out-of-office development bearable here!
                  Accompanied by Beyond Compare portable on the USB stick.
                    • 18373 ☆ A M B ☆
                    • 3,141 Posts
                    I use FileZilla (Open Source) to open the files remotely, which are then opened in NotePad++ (Open Source).

                    When the file is saved in NotePad++ and you open the FileZilla window it will ask you if you want to upload. Once you’re used to that, a simple ctrl+s -> alt-tab -> enter combo will upload to the server.

                    There is also an FTP browser within NotePad++, but in the past that did not work as expected (when the server was idle for a little while, it would disconnect, and saving the file would not reconnect), so haven’t tried that in a while.
                      Mark Hamstra • Developer spending his days working on Premium Extras and a MODX Site Dashboard with the ability to remotely upgrade MODX and extras to make the MODX world a little better.

                      Tweet me @mark_hamstra, check my infrequent blog at markhamstra.com, my slightly more frequent ramblings at MODX.today or see code at Github.
                      • 37099
                      • 338 Posts
                      I’ve spent a couple of hours setting up NetBeans and it looks good so far.

                      It does do more than I was thinking of though when I asked the original question. In that it works with XAMP so you have a local environment in which to develop too.

                      You can set up a project: "PHP Application from Remote Server" and that lets you connect via ftp or sftp and (when you initially set it up) it copies all the remote files to the local machine. When you work on the files they are immediately saved to the remote server ( you can choose whether this is done "On Save", "On Run" or "Manually" )

                      Think I’ll try it and see how it goes.

                      Mike