如何为Elicpse PHP IDE配置WAMP服务器

WAMP is a Windows application that lets you create PHP websites with a MySQL back-end database. This setup is used on a Linux environment and an Apache Web host. WAMP lets you develop and test PHP websites without installing the Linux operating system. WAMP works with the Eclipse developing software, which is an application for building PHP and Java software.

WAMP是一款帮助开发者结合MySQL后端数据库创建PHP网站的Windows应用程序。过去,通常是在Linux环境上搭建Apache Web服务器。WAMP可以帮助开发者无需安装Linux操作系统的同时,开发和测试PHP网站。WAMP与Eclipse开发软件配合使用,后者是一款用于构建PHP和Java应用的集成开发环境。

步骤如下:

1. Download the latest version of the WAMP server to a directory on your computer. Double-click the "WampServer2.0h.exe" file to install the server. After you install the utility, a tray icon displays in the system tray.

1. 下载最新版本的WAMP服务器到你的电脑。双击“WampServer2.0h.exe”执行安装。安装完成后,系统托盘区会显示托盘图标。

2. Double-click the WAMP icon in the system tray. A configuration window opens. Click "Start All Services" in the window. The WAMP service launches, which lets you host the PHP development environment.

2. 双击系统托盘区的WAMP图表,会打开一个配置窗口。在窗口中点击“开始所有服务”。WAMP服务会启动,帮助你启动PHP开发环境。

3. Open a second browser tab and download the Zend debugger plug-in. This plug-in installs on the Eclipse environment. It allows you to run the PHP development service in the Eclipse software. Double-click the EXE file to install the plug-in.

3. 打开一个浏览器窗口,下载Zend调试插件。这个插件安装在Eclipse环境下(或者直接下载Eclipse PHP版)。它允许你在Eclipse中运行PHP开发服务。双击EXE文件安装插件。

4. Open the WAMP configuration window and click "PHP." Click "php.ini" in the list of options. This is the PHP file for configuring the PHP hosting environment. Add the following lines to the file:

4. 打开WAMP配置窗口,点击"PHP"。点击选项列表列表中的“php.ini”。这是PHP宿主环境的配置文件。在文件中添加下面的代码行:

[Debugger]
zend_extension_ts=C:/wamp/eclipse/plugins
/org.zend.php.debug.debugger.win32.x86_5.2.15.v20081217
/resources/php5/ZendDebugger.dll
zend_debugger.allow_hosts=127.0.0.1, 192.168.0.2
zend_debugger.expose_remotely=always

5. Launch the Eclipse software and open your PHP Web project. Click "Run As," then click "PHP Web Page." The debugger runs in the Eclipse debugger, so you can test and review your PHP code.

5. 运行Eclipse IDE,打开你的PHP Web项目。点击“运行为” 然后点击“PHP Web Page”。调试器会在Eclipse调试器中运行,你就可以测试和回顾你的PHP代码了。

原文链接:http://www.ehow.com/how_12150233_configure-wamp-eclipse-ide-php.html

本文链接:http://bookshadow.com/weblog/2014/11/26/configure-wamp-eclipse-ide-php/
请尊重作者的劳动成果,转载请注明出处!书影博客保留对文章的所有权利。

如果您喜欢这篇博文,欢迎您捐赠书影博客: ,查看支付宝二维码

Pingbacks已关闭。

暂无评论

张贴您的评论