This article mainly describes the process of adding plug-ins to eclipse to implement addition, deletion, modification and query of PHP. It has certain learning value and interested friends can learn about it.
1: Add php plug-in to eclipseEclipse video tutorial
1. Run eclipse and find "Help" under the main interface Install New Software”. Then select "All Available Sites" in Work with. Since you need to search, you need to wait patiently. Finally:
2. Select web development-related software and find the PHP Development Tools (PDT) software. Check and click Next.
Find PHP Development Tools (PDT) from the Web.XML, JAVA EE and OSGI options.
3. Click finish to complete the installation of PHP.
4. Click Yes to restart Eclipse.
5. Go to Preferences and you can see PHP. (If unsuccessful, you can go to Eclipse official website to download the standard version and install the PHP plug-in.)
7. First time use, menu-> new->Project->PHP->PHP Project, specify a name, and then you can use it, but be sure to match the previous alias part, otherwise it will not be accessible:
8. The last step is to run the ee.php source program in the test project
8.1. Use the online Browser. Eclipse is a development tool and requires a server such as apache. When installing it, a wamp folder will be generated with a www folder inside. Save the generated .php file in it and enter http://localhost/ file in the browser. .php will do. This is similar to other ordinary editors such as sublinme, and cannot reflect eclipse's emphasis on integrated functions.
8.2. Use local eclipse Browser. First, Window->Show View->Others->General->Internal Web Browser brings up the local Browser. First, you need to configure the workspace of eclipse, which must be set to the www directory of wamp. In this way, eclipse can directly see the running effect.
2: PHP addition, deletion, modification and query examples
1. Project structure
2. Add new
add.php
addChuLi.php
3. List
list.php
##4. Modify
update.php##updateChuLi.php
5. Deletedelete.php
Related tutorials:
PHP video tutorialThe above is the detailed content of How to add a plug-in to eclipse to enable addition, deletion, modification and query of php. For more information, please follow other related articles on the PHP Chinese website!