国产av日韩一区二区三区精品,成人性爱视频在线观看,国产,欧美,日韩,一区,www.成色av久久成人,2222eeee成人天堂

Home php教程 php手冊 PHP初學(xué)者:常用開發(fā)工具分析

PHP初學(xué)者:常用開發(fā)工具分析

Jun 21, 2016 am 09:11 AM
debugger php zend

初學(xué)

??? 因?yàn)镻HP是一種開放性的語言,這也導(dǎo)致了開發(fā)環(huán)境沒有強(qiáng)而權(quán)威的支持。這里列舉一些比較好的編輯工具,希望能給大家開發(fā)PHP程序提供一些幫助。

  Dreamweaver

  從MX開始,DW開始支持PHP+MYSQL的可視化開發(fā),對于初學(xué)者確實(shí)是比較好的選擇,因?yàn)槿绻且话阈蚤_發(fā),幾乎是可以不寫一行代碼也可以寫出一個(gè)程序,而且都是所見即所得的。

  所包含的特征包括,語法加亮、函數(shù)補(bǔ)全,形參提示等。

  不過DW生成的代碼比較復(fù)雜,安全性也一般。在手寫的方面,方便度一般,在調(diào)試環(huán)境方面表現(xiàn)差強(qiáng)人意。不太適合于比較復(fù)雜一點(diǎn)的編程。但對于初學(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編寫的~~這不光意味著多平臺性,同樣意味著很慢的速度,和比較奇怪一點(diǎn)的使用界面。尤其是它那將近半分鐘的啟動速度,讓人無法忍受!!!!!

  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ǔ)全和幫助(但只針對PHP內(nèi)建函數(shù),對自定義函數(shù)無效),工程管理,還有ZDE獨(dú)有的PHP代碼整理,PHP.ini可視化編輯和嵌套標(biāo)示,使用后者在查看程序結(jié)構(gòu)復(fù)雜的時(shí)候顯得十分方便,在不用去數(shù)那密密麻麻的{}號了~

  提供的DEBUG功能包括breakpoints,stack,watches,variables,output buffer,以及所有該有的跟蹤方式。

  缺點(diǎn)主要是:1、速度慢~~2、使用上不是很方便。

  PHPED

  長期從事PHP開發(fā)的NUSPHERE公司推出的PHPED,最新的版本是3.12。

  PHPED的綜合性能是最好的,啟動速度很快,提供的功能也是最多的。語法加亮,函數(shù)補(bǔ)全,工程管理,代碼模版,自動代碼補(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差不多~不過在對類方面要好一些,細(xì)致到了類元素。

  但PHPED的缺點(diǎn)也是很要命的,就是它對中文的支持很差~~甚至選取時(shí)都會顯示不正常。另外要提醒的是,調(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è)。

  PHPCB-devel,一個(gè)美化PHP代碼結(jié)構(gòu),提高可讀性的程序。很有用,如果是用ZDE的話就不用了~~免費(fèi)的,速度也不錯(cuò)。

  工具就介紹這么多了,其實(shí)編程這個(gè)東西,工具只是輔助,主要的還是看自己對吧,很多程序員都是用EDITPLUS,甚至是記事本,就編寫出了很多很棒的程序。所以,與其等一個(gè)完美的編輯工具,還不如多讀點(diǎn)書來的好~~不是么?



Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn

Hot AI Tools

Undress AI Tool

Undress AI Tool

Undress images for free

Undresser.AI Undress

Undresser.AI Undress

AI-powered app for creating realistic nude photos

AI Clothes Remover

AI Clothes Remover

Online AI tool for removing clothes from photos.

Clothoff.io

Clothoff.io

AI clothes remover

Video Face Swap

Video Face Swap

Swap faces in any video effortlessly with our completely free AI face swap tool!

Hot Tools

Notepad++7.3.1

Notepad++7.3.1

Easy-to-use and free code editor

SublimeText3 Chinese version

SublimeText3 Chinese version

Chinese version, very easy to use

Zend Studio 13.0.1

Zend Studio 13.0.1

Powerful PHP integrated development environment

Dreamweaver CS6

Dreamweaver CS6

Visual web development tools

SublimeText3 Mac version

SublimeText3 Mac version

God-level code editing software (SublimeText3)

How to get the current session ID in PHP? How to get the current session ID in PHP? Jul 13, 2025 am 03:02 AM

The method to get the current session ID in PHP is to use the session_id() function, but you must call session_start() to successfully obtain it. 1. Call session_start() to start the session; 2. Use session_id() to read the session ID and output a string similar to abc123def456ghi789; 3. If the return is empty, check whether session_start() is missing, whether the user accesses for the first time, or whether the session is destroyed; 4. The session ID can be used for logging, security verification and cross-request communication, but security needs to be paid attention to. Make sure that the session is correctly enabled and the ID can be obtained successfully.

PHP get substring from a string PHP get substring from a string Jul 13, 2025 am 02:59 AM

To extract substrings from PHP strings, you can use the substr() function, which is syntax substr(string$string,int$start,?int$length=null), and if the length is not specified, it will be intercepted to the end; when processing multi-byte characters such as Chinese, you should use the mb_substr() function to avoid garbled code; if you need to intercept the string according to a specific separator, you can use exploit() or combine strpos() and substr() to implement it, such as extracting file name extensions or domain names.

How do you perform unit testing for php code? How do you perform unit testing for php code? Jul 13, 2025 am 02:54 AM

UnittestinginPHPinvolvesverifyingindividualcodeunitslikefunctionsormethodstocatchbugsearlyandensurereliablerefactoring.1)SetupPHPUnitviaComposer,createatestdirectory,andconfigureautoloadandphpunit.xml.2)Writetestcasesfollowingthearrange-act-assertpat

How to split a string into an array in PHP How to split a string into an array in PHP Jul 13, 2025 am 02:59 AM

In PHP, the most common method is to split the string into an array using the exploit() function. This function divides the string into multiple parts through the specified delimiter and returns an array. The syntax is exploit(separator, string, limit), where separator is the separator, string is the original string, and limit is an optional parameter to control the maximum number of segments. For example $str="apple,banana,orange";$arr=explode(",",$str); The result is ["apple","bana

JavaScript Data Types: Primitive vs Reference JavaScript Data Types: Primitive vs Reference Jul 13, 2025 am 02:43 AM

JavaScript data types are divided into primitive types and reference types. Primitive types include string, number, boolean, null, undefined, and symbol. The values are immutable and copies are copied when assigning values, so they do not affect each other; reference types such as objects, arrays and functions store memory addresses, and variables pointing to the same object will affect each other. Typeof and instanceof can be used to determine types, but pay attention to the historical issues of typeofnull. Understanding these two types of differences can help write more stable and reliable code.

Using std::chrono in C Using std::chrono in C Jul 15, 2025 am 01:30 AM

std::chrono is used in C to process time, including obtaining the current time, measuring execution time, operation time point and duration, and formatting analysis time. 1. Use std::chrono::system_clock::now() to obtain the current time, which can be converted into a readable string, but the system clock may not be monotonous; 2. Use std::chrono::steady_clock to measure the execution time to ensure monotony, and convert it into milliseconds, seconds and other units through duration_cast; 3. Time point (time_point) and duration (duration) can be interoperable, but attention should be paid to unit compatibility and clock epoch (epoch)

How does PHP handle Environment Variables? How does PHP handle Environment Variables? Jul 14, 2025 am 03:01 AM

ToaccessenvironmentvariablesinPHP,usegetenv()orthe$_ENVsuperglobal.1.getenv('VAR_NAME')retrievesaspecificvariable.2.$_ENV['VAR_NAME']accessesvariablesifvariables_orderinphp.iniincludes"E".SetvariablesviaCLIwithVAR=valuephpscript.php,inApach

PHP header location not working after include PHP header location not working after include Jul 13, 2025 am 02:08 AM

When encountering the problem that header('Location:...') does not work, the common reasons and solutions are as follows: 1. There is output in advance, causing the header to fail. The solution is to ensure that there is no output before the jump, including spaces, HTML or echo; 2. There is excess output or UTF-8 BOM characters in the include or require file. The file encoding should be checked and saved as "UTF-8 BOM-free"; 3. It is recommended to use ob_start() to turn on the output buffer before the jump, and cooperate with ob_end_flush() to delay the output; 4. After the jump, be sure to add exit to prevent subsequent code execution; 5. Make sure that the header() function call is before all outputs.

See all articles