Searching For A Good PHP Development Environment? 23
kill-9.ws asks: "I'm a PHP developer, and up until this point, I've been using either Pico or EMACS to write all of my code. A text editor is fine for writing PHP, but I'm starting to look for more. I'd like to have some nice things like an editor that can do syntax highlighting for PHP and perhaps a function reference. Throw in a built-in FTP client, and that would be perfect. Does anyone know if such a thing exists?"
Here are some editors with PHP syntax highlighting (Score:3)
Good:
Php Coder [cjb.net] - builtin interpreter and function reference
EditPlus [editplus.com]
Bad:
MPS PHP Editor [uoe.org]
Indifferent:
HTML-Kit [chami.com]
Unix
[sourceforge.net]
*strike*code warrior*strike*Latte*strike*Glimmer
- this is the best notepad-style (with tabs for multiple files) Unix text editor - extensible, with adjustable background images, etc., scriptable in Python
[note the syntax highlighting file is suboptimal -
should be
Crossplatform
Emacs
Vim (PHP highlighting not very good)
But basically my personal recommendations:
syntax highlighting good, all else redundant
So choose the best editor out there; there's not much else you can do with PHP - it's not WYSIWYG suitable, and the functions are so high level, things *like* dialog editors are redundant. As for ftp, I strongly recommend that if you're on Unix, you install your system's PHP & Apache packages, and on Windows install PHP Triad, an integrated MySQL/PHP/Apache installer. This way you don't have to worry about FTP till you're finished [just a warning: always make sure your local PHP is *older* (or the same) as the one on the web server - v3, apart from having fewer functions, also has a lot of weird and undocumented bugs and misfeatures - e.g., you get errors if you call something $file (or class file); in v4 you can instantiate
class classname {
// No constructor
}
with $object=new classname();
but v3 only allows brackets when the class has a constructor.
Here's how I work:
editor w/syntax highlighting, editing files direct - so much nicer than FTP, and without the FTP problems
browser window set to PHP manual (locally, for speed)
browser set to view PHP pages (Opera is good for this purpose because of its MDI (hint: use 4 and 5 to tab between windows), which generally sucks, but is good in this case cos you don't have to open lots of windows)
VI (Score:1)
Re:VI (Score:1)
Start it as vim.
Bluefish, Quanta (Score:2)
Bluefish is more of a gnome-based editor. Quanta is kde2, I think.
Both rock, although I like Bluefish the best (Olivier, you rock!) Supports projects (collections of files) and you can create your own highlighting rules. Has a function list build in, and a whole host of other features.
Besides, I can run bluefish from within sawfish, after eating monkfish and pulling a stalefish on the way back to the office.
Re:Here are some editors with PHP syntax highlight (Score:1)
item name="string" start="\"" end="\(\"\|\n\)" color="string"
should be
item name="string" start="\"" end="\"" color="string"
item name="string" start="'" end="'" color="string"
otherwise your highlighting gets screwed if your strings span multiple lans
[the item tags need html greater and less than signs around]
Zend.com (Score:1)
It would not be free, and neither Open Source, I guess.
Re:Here are some editors with PHP syntax highlight (Score:1)
PHP Triad [sourceforge.net]
Vim [vim.org]
Emacs [gnu.org]
I happen to like TextPad (Score:2)
TextPad has actually become my text editor of choice. I use it for everything from writing/compiling Java to viewing log files. There is a free trial version (full version costs $27, I think) at the TextPad Site [textpad.com].
PS - Windows only, methinks.
K PHP Develop (Score:3)
Re:Here are some editors with PHP syntax highlight (Score:1)
DreamWeaver UltraDev (Score:1)
Advantages:
- The best GUI web editor around
- Cool "Live Edit" features
- Flexible: It is modifiable to work with many different "application servers".
Disadvantages:
- Proprietary software with a big price tag.
- Windows/Macintosh only.
At any rate, I find UltraDev to be a really awesome "first pass" by Macromedia: I can't wait to see what the next version of it can do.
--
Evan Jones http://www.eng.uwaterloo.ca/Students/ejones/
"Computers are useless. They can only give answers." - Pablo Picasso
HomeSite included with Dreamweaver (Score:1)
EditPlus (Score:1)
It's full of the monkeys! [mad-ink.com]
EditPlus (Win) Or Nedit (*nix) (Score:1)
Jeremy
Re:try ultraedit (for windoze) (Score:1)
Emacs is all you want aparently. (Score:1)
As for syntax highlighting M-x c-mode was fine for my needs last time I edited PHP, but there's probably a php-mode somewhere already.
php ultraedit wordfile (again) (Score:1)
Re:Emacs is all you want aparently. (Score:2)
In addition to ftp, there is ssh/scp support with the tramp package at ftp://ls6-ftp.cs.uni-d ort mund.de/pub/src/emacs/tramp.tar.gz [uni-dortmund.de].
The following links may be useful for writing php code in emacs:
UltraEdit32 (on windooze) (Score:1)
Dreamweaver (Score:1)
try ultraedit (for windoze) (Score:1)
i didn't notice if anyone mentioned this already, but i use UltraEdit32 for all of my php programming in win. it has syntax editing, and yes, you can "save to ftp" as well...it's pretty neat
download it here:
http://www.ultraedit.com/downloads...and get your php wordfile here:
http://www.ultraedit.com/down loa ds/additional.html [ultraedit.com]i think the wordfile (for syntax highlighting) may be for php3, but it works the same
BBEdit for the Mac (Score:2)
BBEdit [barebones.com] for the Mac is fantastic. BBEdit 6.0 has PHP syntax highlighting, built-in FTP, and even breaks each page down into sections by function. If I could get a decent PHP editor (read as: BBEdit...I've tried lots of others) for Linux, I swear I'd switch to it as my primary desktop environment.
-Waldo
PHP and HTML (Score:2)
I wish some editor would allow the mix of both HTML and PHP, supporting echoing HTML from PHP. I'ts a tall order but it would sure make it _a lot_ easier.