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
-
☆ 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.
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....
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.
-
☆ 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.
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
-
☆ 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.
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