因?yàn)閜hp是一種開放性的語言,這也導(dǎo)致了開發(fā)環(huán)境沒有強(qiáng)而權(quán)威的支持。這里列舉一些比較好的編輯工具,希望能給大家開發(fā)php程序提供一些幫助。
dreamweaver
從mx開始,dw開始支持php+mysql的可視化開發(fā),對(duì)于初學(xué)者確實(shí)是比較好的選擇,因?yàn)槿绻且话阈蚤_發(fā),幾乎是可以不寫一行代碼也可以寫出一個(gè)程序,而且都是所見即所得的。
所包含的特征包括,語法加亮、函數(shù)補(bǔ)全,形參提示等。
不過dw生成的代碼比較復(fù)雜,安全性也一般。在手寫的方面,方便度一般,在調(diào)試環(huán)境方面表現(xiàn)差強(qiáng)人意。不太適合于比較復(fù)雜一點(diǎn)的編程。但對(duì)于初學(xué)的人是再好不過了。
zend development enviorment
和php靠得最近的zend推出的一款php的ide,zend development enviorment。最新的版本為2.6,這也是在linux下面唯一一個(gè)php的集成開發(fā)調(diào)試環(huán)境了,當(dāng)然它也有windows版本。
和其它的ide不同,zde是用java編寫的~~這不光意味著多平臺(tái)性,同樣意味著很慢的速度,和比較奇怪一點(diǎn)的使用界面。尤其是它那將近半分鐘的啟動(dòng)速度,讓人無法忍受!!!!!
zde提供的功能是最齊全的,而且可以和zend其它的php開發(fā)工具無縫的結(jié)合。成為一套強(qiáng)大的php開發(fā)環(huán)境,而且zde的調(diào)試環(huán)境是建在zde自身程序里面的,而不象其它的ide,是通過php debuger來實(shí)現(xiàn)的。
包含特征:語法加亮,完整齊全的函數(shù)補(bǔ)全和幫助(但只針對(duì)php內(nèi)建函數(shù),對(duì)自定義函數(shù)無效),工程管理,還有zde獨(dú)有的php代碼整理,php.ini可視化編輯和嵌套標(biāo)示,使用后者在查看程序結(jié)構(gòu)復(fù)雜的時(shí)候顯得十分方便,在不用去數(shù)那密密麻麻的{}號(hào)了~
提供的debug功能包括breakpoints,stack,watches,variables,output buffer,以及所有該有的跟蹤方式。
缺點(diǎn)主要是:1、速度慢~~2、使用上不是很方便。
phped
長期從事php開發(fā)的nusphere公司推出的phped,最新的版本是3.12。
phped 的綜合性能是最好的,啟動(dòng)速度很快,提供的功能也是最多的。語法加亮,函數(shù)補(bǔ)全,工程管理,代碼模版,自動(dòng)代碼補(bǔ)全,可視化的數(shù)據(jù)庫管理,內(nèi)置dav, cvs,ftp,webserver,debugger,以及js代碼列表,常見html標(biāo)簽集,另外phped還支持插件技術(shù)。
安裝版還付帶了php,mysql的手冊(英文的)。值得一提的是phped的調(diào)試功能,雖然zde有它所有的調(diào)試功能,但是phped更方便,比如調(diào)試時(shí)將鼠標(biāo)放在變量上就可以直接看到變量的值,而且調(diào)試窗口的分布較細(xì)致和合理,而且支持外部腳本調(diào)試,zed雖然也能實(shí)現(xiàn),但設(shè)置起來比較麻煩一點(diǎn)。
phped的腳本結(jié)構(gòu)功能和zde差不多~不過在對(duì)類方面要好一些,細(xì)致到了類元素。
但phped的缺點(diǎn)也是很要命的,就是它對(duì)中文的支持很差~~甚至選取時(shí)都會(huì)顯示不正常。另外要提醒的是,調(diào)試時(shí)變量值中文顯示可以通過在debugger里面的設(shè)置,將語言改成gb就可以了~~否則含有中文的變量值是不能正常顯示的~
php expert editor
php expert editor 較新的版本是3.0,比較有特色的功能有:php語法檢查,程序段書簽,宏功能,代碼模版,內(nèi)建web server,debugger。
pee在代碼結(jié)構(gòu)分析上有一個(gè)特色就是可以看到每一個(gè)變量的分別出現(xiàn)位置,如果要跟蹤是再方便不過了。
總的說,pee是一個(gè)半調(diào)子編輯環(huán)境,在補(bǔ)全等方面顯得不很方便。
最后給大家再介紹兩個(gè)小的程序
phpprocessor,一個(gè)php代碼的優(yōu)化和保護(hù)程序,可以通過去掉注釋回車等減少php文件大小,將變量名改為晦澀的新名稱降低程序可讀性保護(hù)程序。內(nèi)建了ftp工具,完善的備份措施,收費(fèi),15天免費(fèi)適用,有功能限制。如果只是想減小php代碼的大小的話,有另外一個(gè)免費(fèi)的選擇htmlshrinkerlight,只不過效果不如這個(gè)。
因?yàn)閜hp是一種開放性的語言,這也導(dǎo)致了開發(fā)環(huán)境沒有強(qiáng)而權(quán)威的支持。這里列舉一些比較好的編輯工具,希望能給大家開發(fā)php程序提供一些幫助。
dreamweaver
從mx開始,dw開始支持php+mysql的可視化開發(fā),對(duì)于初學(xué)者確實(shí)是比較好的選擇,因?yàn)槿绻且话阈蚤_發(fā),幾乎是可以不寫一行代碼也可以寫出一個(gè)程序,而且都是所見即所得的。
所包含的特征包括,語法加亮、函數(shù)補(bǔ)全,形參提示等。
However, the code generated by dw is more complicated and the security is average. In terms of handwriting, the convenience is average, and the performance in the debugging environment is unsatisfactory. Not suitable for more complex programming. But it’s perfect for beginners.
zend development enviorment
Zend, which is closest to PHP, launched a PHP IDE, zend development enviorment. The latest version is 2.6, which is also the only PHP integrated development and debugging environment under Linux. Of course, it also has a Windows version.
Unlike other IDEs, zde is written in Java~~ This not only means multi-platform, but also means very slow speed and a strange user interface. Especially its startup speed of nearly half a minute is unbearable!!!!!
zde provides the most complete functions and can be seamlessly integrated with zend and other PHP development tools. It has become a powerful PHP development environment, and ZDE's debugging environment is built into ZDE's own program, unlike other IDEs, which are implemented through PHP debuger.
Includes features: syntax highlighting, complete function completion and help (but only for PHP built-in functions, not valid for custom functions), project management, and zde’s unique PHP code organization, php.ini Visual editing and nested marking, using the latter is very convenient when viewing complex program structures, without having to count the dense {} numbers ~
The debugging functions provided include breakpoints, stack, watches, variables, output buffer, and all available tracking methods.
The main disadvantages are: 1. Slow speed~~ 2. Not very convenient to use.
phped
PHPed was launched by nusphere, a company that has been engaged in PHP development for a long time. The latest version is 3.12.
phped has the best overall performance, starts very quickly, and provides the most functions. Syntax highlighting, function completion, project management, code templates, automatic code completion, visual database management, built-in dav, cvs, ftp, webserver, debugger, and js code list, common html tag set, and phped also supports plug-ins technology.
The installation version also comes with PHP and MySQL manuals (in English). It is worth mentioning the debugging function of phped. Although zde has all its debugging functions, phped is more convenient. For example, you can directly see the value of the variable by placing the mouse on the variable during debugging, and the distribution of the debugging window is more detailed and It is reasonable and supports external script debugging. Although zed can also be implemented, it is a bit more troublesome to set up.
phped’s script structure function is similar to zde’s~ but it is better in terms of classes, down to class elements.
But the shortcoming of phped is also very serious, that is, its support for Chinese is very poor~~it will even display abnormally when selecting. Another reminder is that when debugging, variable values ??can be displayed in Chinese by setting the debugger and changing the language to gb~~ Otherwise, variable values ??containing Chinese cannot be displayed normally~
php expert editor
The latest version of php expert editor is 3.0. The more distinctive functions include: php syntax check, program segment bookmarks, macro functions, code templates, built-in web server, and debugger.
One of the features of pee in code structure analysis is that you can see the location of each variable, which is very convenient if you want to track it.
In general, pee is a half-toned editing environment, which is not very convenient in aspects such as completion.
Finally, I will introduce two small programs to you
phpprocessor, a PHP code optimization and protection program, can reduce the size of PHP files by removing comments and carriage returns, and changing variable names to obscure new names to reduce program readability. It has built-in ftp tools and complete backup measures. It is chargeable and free for 15 days. There are functional restrictions. If you just want to reduce the size of the php code, there is another free option, htmlshrinkerlight, but it is not as effective as this one.
php cb-de vel, a program that beautifies the PHP code structure and improves readability. It's very useful. If you use zde, you don't need it. It's free and the speed is good.
That’s all about the tools. In fact, when it comes to programming, tools are just auxiliary. The main thing is up to you, right? Many programmers use editplus or even notepad to write many great programs. So, instead of waiting for a perfect editing tool, it’s better to read more books~~ isn’t it?