Solution to EclipsePHP real-time browser setting

Source: Internet
Author: User
EclipsePHP real-time browser setting method this post was last edited by mmy628 from 2011-03-022:54:17. I am a newbie. after installing Eclipse, enter the PHP source code in the editing window; browser real-time browsing program. if you do not configure EclipesPHP, you will not be able to set the real-time browsing method for EclipsePHP.
This post was last edited by mmy628 at 21:54:17 on. I am a newbie. after installing Eclipse, enter the PHP source code in the editing window and want to view the program in real time in the PHP Browser, if EclipesPHP is not configured, it cannot be implemented.
1. description of creating a project directory:
When I create a "PHP project" named "test1" and a file named "test. php", I am prompted to select an "installation directory ".
The directory I selected is: E:/home/m2006/bbs/test
Explain the meaning of the above directory.
"Home/" is the root directory of my IIS website (I didn't build a website using Apache. my server is set up as follows: WIN7_IIS + MySQL5.5 + PHP5.3 + Discuz8.3 ).
"M2006/suffix is the directory where my index.html is located.
"Bbs/" is the directory where index. PHP is located in the Discuz8.3 Forum supported by php I set up.
The "test/" project directory is built under "bbs/". it is considered that EclipsePHP requires support from MySQL and PHP.
To understand the meaning of the preceding Directory, go to EclipsePHP's next property configuration.

II. Project Defaults configuration

Open the "window/option/PHPeclipse Web Development/Project Defaults" of Eclipse in sequence to go to its "Project Defaults" Project default configuration interface. For example.
The "Localhost" item in the right box is of course my BBS directory that supports PHP, and the test directory is the directory where I created the test1 project.
The "DocumentRoot" document Root in the right box is the incorrect installation path "E:/PHP100.com" when I first installed EclipsePHP ". If this path is not modified, every time you change it in the programming window, the save dialog box will pop up automatically, which will cause a lot of trouble for PHP programming in the future. For example:

Modify the "DocumentRoot" path as follows:

The above two items are modified, which is equivalent to modifying the global variables of Localhost. you do not need to modify them in the context menu of all projects.
Note 1: "DocumentRoot" has been changed to "test" under the "bbs/" directory that supports the PHP and MySQL runtime environments. "/" Is not followed by "test"; otherwise, an error occurs during real-time browsing!
Note 2: In "Include Paths", "create..." has an "E: \ PHP10.COM ". This is a boring move. The "\" here is different from the "DocumentRoot" above! These details do not pay attention to, but will also cause troubles.

III. configuration of PHP and MySQL
1. PHP configuration:

Open the Eclipse "window/option/PHPeclipse Web Development/PHP, find" HTTP Query ", find" Localhost "in the right box, I modified it" http://192.168.1.XXX ", my intranet IP address. Then a new "Localhost2" URL: http: // localhost is created. It is also boring.

The following is the extension tool. After clicking open, the following figure is displayed in the box on the right:

The first item is the php.exe installation directory.
Second, the parameter item should be the default one when EclipsePHP is installed. Therefore, when installing Eclipse for the first time, you must carefully set the installation parameters.

The following is the configuration of Apache and MySQL. I have not installed Apache here, so I only need to configure MySQL.


Is the installation path of MySQL.

4. browser selection.
Select 1 and 2 from the right arrow of "window/Web Browser", that is, you cannot select 0.

Finally, write a PHP:

If you cannot preview it now, press Ctrl + S "!
It is really troublesome to upload an image. I have uploaded it in my personal album, but it cannot be referenced?
Share:

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.