Recently, Eclipse installed the php plug-in. to create an Android Network App, you need to build your own server and develop dynamic web pages. to improve efficiency, you need to install the php plug-in eclipse, in addition, you can directly browse the self-developed dynamic web page in eclipse without entering the localhost or other paths in the browser. now the configuration process is recorded as follows:
1. download the phpEclise plug-in
: Http://sourceforge.net/projects/phpeclipse/files/
2. decompress the downloaded phpEclise, including the features and plugins folders, and copy them to the corresponding eclipse directory.
3. enable the phpEclipse plug-in
To Window-Preferences? PHPeclipse Web Development? In PHP, specify the corresponding locations of the Apache, PHP, and mysql execution files in your php environment. As for the parameter, it seems that the default setting is acceptable. I use Apache2, after modification, start with-w-n "Apache2"-k start; stop with:-w-n "Apache2"-k stop; restart with-w-n "Apache2"-k restart
In this way, you can use the apache and mysql buttons on the toolbar.
4. link the eclipse working directory to the default directory of apche2.
Sudo ln-s develop/workspace/web_workspace/var/www this is a link method in linux. you can modify http in windows. conf configuration file, or directly set the php working directory of eclipse to the default directory of apache2.