PHP新手入门 二、Windows下PHP开发工具配置【原创】
2014-11-23 00:00
841 查看
在上一篇文章:PHP新手入门 一、Windows下开发环境搭建【原创】中我们已经谈了在Windows环境下怎样手动搭建PHP开发环境。这讲我们来谈在Windows环境下php开发工具的配置。
PHP 编译工具有很多,有轻量方便的EditPlus 、NotePad++、NotePad2等文本编译工具。支持多种语言,提供代码高亮。优点是小巧方便。但是用文本编辑器虽然很方便,可是开发一套大型的系统,为了提高开发效率、节约开发时间,很多人还是喜欢用IDE集成环境。下面来介绍几种简单常用的开发软件。
一、NetBeans PHP
NetBeans 包括开源的开发环境和应用平台,NetBeans IDE可以使开发人员利用Java平台能够快速创建Web、企业、桌面以及移动的应用程序,NetBeans IDE已经支持PHP、Ruby、JavaScript、Groovy、Grails和C/C++等开发语言。
在官网下载netbeans-8.0.1-php-windows.exe(只用于php开发)或者netbeans-8.0.1-windows.exe(集成多语言开发,详细见官网)
1.打开 工具=>选项=>常规
web浏览器用于选择调试php的浏览器,也可以打开“编辑”=>添加
编辑其他浏览器。
2.工具=>选项=>PHP
“PHP5解释器”,点击“浏览”选择自己php路径下的php.exe文件
3.测试php程序:打开 文件=>新建项目
#gallery-1 {
margin: auto;
}
#gallery-1 .gallery-item {
float: left;
margin-top: 10px;
text-align: center;
width: 33%;
}
#gallery-1 img {
border: 2px solid #cfcfcf;
}
#gallery-1 .gallery-caption {
margin-left: 0;
}
/* see gallery_shortcode() in wp-includes/media.php */
后面默认下一步=>完成
#gallery-2 {
margin: auto;
}
#gallery-2 .gallery-item {
float: left;
margin-top: 10px;
text-align: center;
width: 33%;
}
#gallery-2 img {
border: 2px solid #cfcfcf;
}
#gallery-2 .gallery-caption {
margin-left: 0;
}
/* see gallery_shortcode() in wp-includes/media.php */
二、Zend Studio
Zend Studio是Zend Technologies公司开发的PHP语言集成开发环境(IDE)。除了有强大的PHP开发支持外也支持HTML、js、CSS,但只对PHP语言提 供调试支持。Studio5.5系列后,官方推出了基于Eclipse平台的Zend Studio,当前最新的11.0.1版本亦是构建于Eclipse平台。
在Zend Studio官网下载ZendStudio-11.0.2-win32.win32.x86.msi
在 Xdebug官网下载PHP 5.5 VC11 TS (64 bit)(TS指线程安全,建议下载TS版)
1.apache server配置
在ZendStudio中打开Window=>Preferences=>PHP=>Servers,点击New添加
#gallery-3 {
margin: auto;
}
#gallery-3 .gallery-item {
float: left;
margin-top: 10px;
text-align: center;
width: 33%;
}
#gallery-3 img {
border: 2px solid #cfcfcf;
}
#gallery-3 .gallery-caption {
margin-left: 0;
}
/* see gallery_shortcode() in wp-includes/media.php */
2.xdebug安装配置
将下载的PHP 5.5 VC11 TS (64 bit)解压后得到的php_xdebug-2.2.6-5.5-vc11-x86_64.dll文件放到自己安装的php目录,D:\php\ext目录下。并在php.ini文件中输入以下代码:
打开phpinfo(),如果看到
with Xdebug v2.2.6,说明安装配置成功
3.配置ZendStudio中的Debug
在ZendStudio中打开Window=>Preferences=>PHP=>PHP Executables
#gallery-4 {
margin: auto;
}
#gallery-4 .gallery-item {
float: left;
margin-top: 10px;
text-align: center;
width: 33%;
}
#gallery-4 img {
border: 2px solid #cfcfcf;
}
#gallery-4 .gallery-caption {
margin-left: 0;
}
/* see gallery_shortcode() in wp-includes/media.php */
在ZendStudio中打开Window=>Preferences=>PHP=>Debug
4.测试
#gallery-5 {
margin: auto;
}
#gallery-5 .gallery-item {
float: left;
margin-top: 10px;
text-align: center;
width: 33%;
}
#gallery-5 img {
border: 2px solid #cfcfcf;
}
#gallery-5 .gallery-caption {
margin-left: 0;
}
/* see gallery_shortcode() in wp-includes/media.php */
3.Eclipse PHP
Eclipse 是一个开放源代码的、基于Java的可扩展开发平台。就其本身而言,它只是一个框架和一组服务,用于通过插件组件构建开发环境。Eclipse并不仅限于 Java 开发工具。尽管 Eclipse 是使用Java语言开发的,但它的用途并不限于 Java 语言;例如,支持诸如C/C++、COBOL、PHP等编程语言的插件已经可用。
在Eclipse官网下载Eclipse for PHP Developers
把下载的压缩文件解压后打开eclipse.exe。配置步骤请参照二、Zend Studio的安装配置。(Studio5.5系列后,官方推出了基于Eclipse平台的Zend Studio,当前最新的11.0.1版本亦是构建于Eclipse平台。所以都是基于Eclipse平台,配置方法是一样的。)
PHP 编译工具有很多,有轻量方便的EditPlus 、NotePad++、NotePad2等文本编译工具。支持多种语言,提供代码高亮。优点是小巧方便。但是用文本编辑器虽然很方便,可是开发一套大型的系统,为了提高开发效率、节约开发时间,很多人还是喜欢用IDE集成环境。下面来介绍几种简单常用的开发软件。
一、NetBeans PHP
NetBeans 包括开源的开发环境和应用平台,NetBeans IDE可以使开发人员利用Java平台能够快速创建Web、企业、桌面以及移动的应用程序,NetBeans IDE已经支持PHP、Ruby、JavaScript、Groovy、Grails和C/C++等开发语言。
在官网下载netbeans-8.0.1-php-windows.exe(只用于php开发)或者netbeans-8.0.1-windows.exe(集成多语言开发,详细见官网)
1.打开 工具=>选项=>常规
web浏览器用于选择调试php的浏览器,也可以打开“编辑”=>添加
编辑其他浏览器。
2.工具=>选项=>PHP
“PHP5解释器”,点击“浏览”选择自己php路径下的php.exe文件
3.测试php程序:打开 文件=>新建项目
#gallery-1 {
margin: auto;
}
#gallery-1 .gallery-item {
float: left;
margin-top: 10px;
text-align: center;
width: 33%;
}
#gallery-1 img {
border: 2px solid #cfcfcf;
}
#gallery-1 .gallery-caption {
margin-left: 0;
}
/* see gallery_shortcode() in wp-includes/media.php */
后面默认下一步=>完成
#gallery-2 {
margin: auto;
}
#gallery-2 .gallery-item {
float: left;
margin-top: 10px;
text-align: center;
width: 33%;
}
#gallery-2 img {
border: 2px solid #cfcfcf;
}
#gallery-2 .gallery-caption {
margin-left: 0;
}
/* see gallery_shortcode() in wp-includes/media.php */
二、Zend Studio
Zend Studio是Zend Technologies公司开发的PHP语言集成开发环境(IDE)。除了有强大的PHP开发支持外也支持HTML、js、CSS,但只对PHP语言提 供调试支持。Studio5.5系列后,官方推出了基于Eclipse平台的Zend Studio,当前最新的11.0.1版本亦是构建于Eclipse平台。
在Zend Studio官网下载ZendStudio-11.0.2-win32.win32.x86.msi
在 Xdebug官网下载PHP 5.5 VC11 TS (64 bit)(TS指线程安全,建议下载TS版)
1.apache server配置
在ZendStudio中打开Window=>Preferences=>PHP=>Servers,点击New添加
#gallery-3 {
margin: auto;
}
#gallery-3 .gallery-item {
float: left;
margin-top: 10px;
text-align: center;
width: 33%;
}
#gallery-3 img {
border: 2px solid #cfcfcf;
}
#gallery-3 .gallery-caption {
margin-left: 0;
}
/* see gallery_shortcode() in wp-includes/media.php */
2.xdebug安装配置
将下载的PHP 5.5 VC11 TS (64 bit)解压后得到的php_xdebug-2.2.6-5.5-vc11-x86_64.dll文件放到自己安装的php目录,D:\php\ext目录下。并在php.ini文件中输入以下代码:
[Xdebug] ;调试功能模块儿 ;extension=php_xdebug-2.2.5-5.3-vc9.dll zend_extension = "D:/php/ext/php_xdebug-2.2.6-5.5-vc11-x86_64.dll" xdebug.remote_handler=dbgp ;开启远程调试 xdebug.remote_enable = On ;远程主机 xdebug.remote_host=localhost ;主机端口 xdebug.remote_port=9000 ;开启自动跟踪 xdebug.auto_trace = On ;开启异常跟踪 xdebug.show_exception_trace = On ;开启远程调试自动启动 xdebug.remote_autostart = On ;收集变量 xdebug.collect_vars = On ;收集返回值 xdebug.collect_return = On ;收集参数 xdebug.collect_params = On ;临时跟踪信息输出 xdebug.trace_output_dir="D:/php/temp/trace" ;显示局部变量 xdebug.show_local_vars = On xdebug.profiler_enable = On xdebug.profiler_output_dir ="D/php/temp/profiler" xdebug.trace_enable_trigger =On
打开phpinfo(),如果看到
with Xdebug v2.2.6,说明安装配置成功
3.配置ZendStudio中的Debug
在ZendStudio中打开Window=>Preferences=>PHP=>PHP Executables
#gallery-4 {
margin: auto;
}
#gallery-4 .gallery-item {
float: left;
margin-top: 10px;
text-align: center;
width: 33%;
}
#gallery-4 img {
border: 2px solid #cfcfcf;
}
#gallery-4 .gallery-caption {
margin-left: 0;
}
/* see gallery_shortcode() in wp-includes/media.php */
在ZendStudio中打开Window=>Preferences=>PHP=>Debug
4.测试
#gallery-5 {
margin: auto;
}
#gallery-5 .gallery-item {
float: left;
margin-top: 10px;
text-align: center;
width: 33%;
}
#gallery-5 img {
border: 2px solid #cfcfcf;
}
#gallery-5 .gallery-caption {
margin-left: 0;
}
/* see gallery_shortcode() in wp-includes/media.php */
3.Eclipse PHP
Eclipse 是一个开放源代码的、基于Java的可扩展开发平台。就其本身而言,它只是一个框架和一组服务,用于通过插件组件构建开发环境。Eclipse并不仅限于 Java 开发工具。尽管 Eclipse 是使用Java语言开发的,但它的用途并不限于 Java 语言;例如,支持诸如C/C++、COBOL、PHP等编程语言的插件已经可用。
在Eclipse官网下载Eclipse for PHP Developers
把下载的压缩文件解压后打开eclipse.exe。配置步骤请参照二、Zend Studio的安装配置。(Studio5.5系列后,官方推出了基于Eclipse平台的Zend Studio,当前最新的11.0.1版本亦是构建于Eclipse平台。所以都是基于Eclipse平台,配置方法是一样的。)
相关文章推荐
- PHP新手入门 一、Windows下开发环境搭建【原创】
- Windows下搭建PHP开发环境(Apache+PHP+MySQL)+调试工具Xdebug的配置
- eVC4.0进行smartphone或packet PC开发新手入门(开发工具下载,安装,配置)
- [原创]PHP开发环境配置(Windows版)
- 搭建Windows系统下php开发环境有很多种方式,比如LAMP的配置、php IDE和调试工具的选择等等。根据每个人喜好不同有很多配置方式。这里主要介绍的是利用XAMPP集成安装和配置apache、
- windows下 VIM安装配置,打造PHP IDE开发工具
- [原创]Zenoss配置入门-监控Windows
- Windows 下 PHP 环境的配置 (原创)
- Windows 下 PHP 环境的配置 (原创)
- 新手搭建PHP环境必备知识:windows下PHP5+APACHE+MYSQL完整配置
- Windows 下 PHP 环境的配置 (原创)
- 在Windows下应用AppServ快速配置PHP开发环境
- 新手搭建PHP环境必备知识:windows下PHP5+APACHE+MYSQL完整配置
- windows下配置PHP+MySQL开发环境
- Windows 下 PHP 环境的配置 (原创)
- Windows应用程序开发入门到精通九:安全的配置并部署.NET Windows Forms应用程序
- windows平台下php开发平台的配置
- Windows调试工具入门4 - WinDbg内核调试配置
- Windows 下 PHP 环境的配置 (原创)
- Windows 下 PHP 环境的配置 (原创)