search
HomeWeb Front-endHTML TutorialEclipse PHPEclipse configuration_html/css_WEB-ITnose

Recently, I took advantage of some time to read the PHP book.

When it comes to php, we have to mention the development environment of php. Generally, apache is used as the server, mysql is used as the database, and php is combined to form a complete operating environment, but it seems that there is no coding As for the compiler, it's not enough to just use notepad to write PHP code by hand. Later I heard that eclipse can also be used to develop PHP. All it takes is a PHP plug-in?? "PHPEclipse". Simply put, PHPEclipse is an Eclipse plug-in that provides an integrated development environment for PHP developers. For a detailed introduction, please see the official website: http://www.phpeclipse.com/


Here are the steps to install, set up, and use PHPEclipse under Eclipse:

1. Install apache mysql php eclipse

Originally, the installation here is not the focus of this article, but I still want to do it here? By the way, if you want to install apache mysql php one by one in a single step, you can finally install it one by one. It is too complicated to configure them together. Here we recommend an integrated installation package "Xampp".

2. Download PHPEclipse

You can download the Binarry version of PHPEclipse here (http://sourceforge.net/projects/phpeclipse/?source=typ_redirect)

3. Install PHPEclipse

Copy all the contents of the features folder extracted from the downloaded compressed package to the features folder in the eclipse root directory, for example, copy to: D: eclipsefeatures (where eclipse is installed) Where to find features). In the same way, copy all the contents of the plugins folder in the compressed package to the plugins folder in the eclipse root directory. Copy the site.xml in the compressed package to the root directory of Eclipse.

4. Configure PHPEclipse

1. Restart eclipse.

2. Open eclipse, select Window->Open Perspective->Other...


3. In the Open Perspective window, find and select the PHP option


4. At this time, you can see the PHP tab in the upper right corner of Eclipse, so you can switch between java, debug, and php modes


5. In Eclipse, select Window->Preferences, and in the pop-up Preferences window, click PHPeclipse->PHP External Tools from the left menu bar to modify the PHP configuration information. PHP External Tools has three submenus: Apache, MySQL, and XAMPP, which are used to set the configuration information of Apache, MySQL, and XAMPP.


6. Click the Apache submenu to modify the Apache configuration information. Change the Apache path to the local installation path. The modified sample is as shown in the figure, the specific value is subject to your own computer.


7. Modify MySQL configuration information


8. Modify XAMPP configuration information


5. Use PHPEclipse

1. Switch Eclipse to the PHP view, and select File->New->PHP Project to create a new PHP project. Enter the project name in the New PHPProject window, select the project save location, and click Finish.



2. Select the Hello World project just created, right-click the mouse, and select New-> in the pop-up shortcut menu. PHP File


3. In the new window that pops up, enter the PHP file name, such as index.php, and then next step


4. Write the following code on the index.php page:

<?php print "Hello world!";?>


5. Modify Apache’s file access path: change the DocumentRoot and Directory values ​​in the httpd.conf file under xamppApacheconf Change to the Eclipse workspace path.


6. Select the Hello World project, right-click, and select the Properties option in the pop-up menu. Select PHP Properties Settings in the left menu bar of the pop-up Properties window and modify the value of Project URI. The default value is http://localhost/, followed by the project name. In this way, the project can be located normally when running the PHP file.


7. Click the Start XAMPP icon to start XAMPP


8. Run the PHP file: Hello Worldindex here. Take php as an example, select index.php, right-click, select Open PHP Browser, and you can see the running effect of index.php in the browser


9. Good luck!


Note: For convenience, some screenshots of this article are not original, the original ones are here

Author: EXLsunshine Published on 2014-9-29 19:34:02 Original text Link

Reads: 37 Comments: 0 View comments

Statement
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
What is the purpose of HTML tags?What is the purpose of HTML tags?Apr 28, 2025 am 12:02 AM

HTMLtagsareessentialforstructuringwebpages,enhancingaccessibility,SEO,andperformance.1)Theyareenclosedinanglebracketsandusedinpairstocreateahierarchicalstructure.2)SemantictagslikeandimproveuserexperienceandSEO.3)Creativetagslikeenabledynamicgraphics

What are self-closing tags? Give an example.What are self-closing tags? Give an example.Apr 27, 2025 am 12:04 AM

Self-closingtagsinHTMLandXMLaretagsthatclosethemselveswithoutneedingaseparateclosingtag,simplifyingmarkupstructureandenhancingcodingefficiency.1)TheyareessentialinXMLforelementswithoutcontent,ensuringwell-formeddocuments.2)InHTML5,usageisflexiblebutr

Beyond HTML: Essential Technologies for Web DevelopmentBeyond HTML: Essential Technologies for Web DevelopmentApr 26, 2025 am 12:04 AM

To build a website with powerful functions and good user experience, HTML alone is not enough. The following technology is also required: JavaScript gives web page dynamic and interactiveness, and real-time changes are achieved by operating DOM. CSS is responsible for the style and layout of the web page to improve aesthetics and user experience. Modern frameworks and libraries such as React, Vue.js and Angular improve development efficiency and code organization structure.

What are boolean attributes in HTML? Give some examples.What are boolean attributes in HTML? Give some examples.Apr 25, 2025 am 12:01 AM

Boolean attributes are special attributes in HTML that are activated without a value. 1. The Boolean attribute controls the behavior of the element by whether it exists or not, such as disabled disable the input box. 2.Their working principle is to change element behavior according to the existence of attributes when the browser parses. 3. The basic usage is to directly add attributes, and the advanced usage can be dynamically controlled through JavaScript. 4. Common mistakes are mistakenly thinking that values ​​need to be set, and the correct writing method should be concise. 5. The best practice is to keep the code concise and use Boolean properties reasonably to optimize web page performance and user experience.

How can you validate your HTML code?How can you validate your HTML code?Apr 24, 2025 am 12:04 AM

HTML code can be cleaner with online validators, integrated tools and automated processes. 1) Use W3CMarkupValidationService to verify HTML code online. 2) Install and configure HTMLHint extension in VisualStudioCode for real-time verification. 3) Use HTMLTidy to automatically verify and clean HTML files in the construction process.

HTML vs. CSS and JavaScript: Comparing Web TechnologiesHTML vs. CSS and JavaScript: Comparing Web TechnologiesApr 23, 2025 am 12:05 AM

HTML, CSS and JavaScript are the core technologies for building modern web pages: 1. HTML defines the web page structure, 2. CSS is responsible for the appearance of the web page, 3. JavaScript provides web page dynamics and interactivity, and they work together to create a website with a good user experience.

HTML as a Markup Language: Its Function and PurposeHTML as a Markup Language: Its Function and PurposeApr 22, 2025 am 12:02 AM

The function of HTML is to define the structure and content of a web page, and its purpose is to provide a standardized way to display information. 1) HTML organizes various parts of the web page through tags and attributes, such as titles and paragraphs. 2) It supports the separation of content and performance and improves maintenance efficiency. 3) HTML is extensible, allowing custom tags to enhance SEO.

The Future of HTML, CSS, and JavaScript: Web Development TrendsThe Future of HTML, CSS, and JavaScript: Web Development TrendsApr 19, 2025 am 12:02 AM

The future trends of HTML are semantics and web components, the future trends of CSS are CSS-in-JS and CSSHoudini, and the future trends of JavaScript are WebAssembly and Serverless. 1. HTML semantics improve accessibility and SEO effects, and Web components improve development efficiency, but attention should be paid to browser compatibility. 2. CSS-in-JS enhances style management flexibility but may increase file size. CSSHoudini allows direct operation of CSS rendering. 3.WebAssembly optimizes browser application performance but has a steep learning curve, and Serverless simplifies development but requires optimization of cold start problems.

See all articles

Hot AI Tools

Undresser.AI Undress

Undresser.AI Undress

AI-powered app for creating realistic nude photos

AI Clothes Remover

AI Clothes Remover

Online AI tool for removing clothes from photos.

Undress AI Tool

Undress AI Tool

Undress images for free

Clothoff.io

Clothoff.io

AI clothes remover

Video Face Swap

Video Face Swap

Swap faces in any video effortlessly with our completely free AI face swap tool!

Hot Tools

EditPlus Chinese cracked version

EditPlus Chinese cracked version

Small size, syntax highlighting, does not support code prompt function

SublimeText3 Chinese version

SublimeText3 Chinese version

Chinese version, very easy to use

MinGW - Minimalist GNU for Windows

MinGW - Minimalist GNU for Windows

This project is in the process of being migrated to osdn.net/projects/mingw, you can continue to follow us there. MinGW: A native Windows port of the GNU Compiler Collection (GCC), freely distributable import libraries and header files for building native Windows applications; includes extensions to the MSVC runtime to support C99 functionality. All MinGW software can run on 64-bit Windows platforms.

mPDF

mPDF

mPDF is a PHP library that can generate PDF files from UTF-8 encoded HTML. The original author, Ian Back, wrote mPDF to output PDF files "on the fly" from his website and handle different languages. It is slower than original scripts like HTML2FPDF and produces larger files when using Unicode fonts, but supports CSS styles etc. and has a lot of enhancements. Supports almost all languages, including RTL (Arabic and Hebrew) and CJK (Chinese, Japanese and Korean). Supports nested block-level elements (such as P, DIV),

DVWA

DVWA

Damn Vulnerable Web App (DVWA) is a PHP/MySQL web application that is very vulnerable. Its main goals are to be an aid for security professionals to test their skills and tools in a legal environment, to help web developers better understand the process of securing web applications, and to help teachers/students teach/learn in a classroom environment Web application security. The goal of DVWA is to practice some of the most common web vulnerabilities through a simple and straightforward interface, with varying degrees of difficulty. Please note that this software