Eclipse上配置php
?
?
Name: PHPeclipse Update Site
URL: http://phpeclipse.sourceforge.net/update/releases
-----------------------------------------------
使用EclipseIDE開發php項目,現在有2種方法:
1.使用Eclipse(或MyEclipse),下載php開發外掛程式:phpeclipse,具體配置方法,詳見下文:
2.使用Zend Studio的for Eclipse版本(Zend的官方網站現在既有Zend Studio,也有Zend Studio for Eclipse版本).
1.軟硬體設施環境
?? 系統:windows xp
?? 配置Integration Environment:XAMP+PHPECLIPSE
?? 注:eclipse中支援XAMP的運行,所以選用XAMP
??????? XAMP中包含:phpmyadmin+mysql+apache+php
2.軟體下載地址
PHP外掛程式:http://phpeclipse.sourceforge.net/update/releases
?? phpeclipse1.1.8外掛程式:http://jaist.dl.sourceforge.net/sourceforge/phpeclipse/net.sourceforge.phpeclipse_1.1.8.bin.dist.zip
?? phpEclipse使用指南:http://download.templateen.com/uploadfile/2006/7/14/11374960819.zip
ECLIPSE:http://archive.eclipse.org/eclipse/downloads/drops/S-3.3RC1-200705171700/eclipse-SDK-3.3RC1-win32.zip
XAMP:http://jaist.dl.sourceforge.net/sourceforge/xampp/xampp-win32-1.6.2.zip
3.操作步驟
A.首先下載相關軟體,從各個網站上尋找最新的軟體.
B.PHP配置與安裝
(1)如果使用者所下載的ECLIPSE中沒有PHP,那麼可以進行以下步驟
????? 開啟eclipse工具,選擇"Help"---"software updates"---"find and install"---"search for new features to install"---"NEXT",選擇"new remote site"按紐,輸入相關名稱與PHP外掛程式地址
(2)如果使用者下載的PHPECLIPSE,那麼不需要安裝PHP的外掛程式,直接運用就行
C.XAMP與ECLIPSE的結合
(1)啟動ECLIPSE,選擇window----"Preference"
(2)"PHPeclipse web development"---"php external tools"----"XAMP"
(3)在XAMP的start 和stop中選擇xamp所對應的相關目錄.
???? 例如:xamp start:c:\xampp\xampp_start.exe
???????????? xamp stop:c:\xampp\xampp_stop.exe
?