eclipsephp Real-Time browsing Setup method
This post was last edited by mmy628 on 2011-03-02 21:54:17
I am a novice, after installing Eclipse, in the editing window input PHP source code, want in PHP browser real-time browsing program, if not configured eclipesphp, will not be implemented.
First, the new project directory Description:
When I create a new PHP project called "Test1" and a file called "test.php", I'm prompted to select an "installation directory".
The directory I chose is: e:/home/m2006/bbs/test
Explain the meaning of the directory above.
"Home/" is the root directory of my IIS Web site (I did not build a station with Apache, my server was built as follows: Win7_iis + mysql5.5+php5.3+discuz8.3).
"m2006/" is the directory where my index.html is located.
"bbs/" is my PHP support Discuz8.3 Forum, index.php is located in the directory.
"test/" project directory is built under "bbs/", it is considered eclipsephp need MySQL, PHP support.
Understand the meaning of the above directory, enter eclipsephp next to the property configuration.
Ii. Project Defaults configuration
Open the Eclipse's Windows/options/phpeclipse Web development/project Defaults and go to its project Defaults projects default configuration interface. Such as.
The "Localhost" item in the right box is, of course, my PHP-supported BBS directory, and the test directory is the directory for my new Test1 project.
The "DocumentRoot" document root in the right box is the installation path "e:/php100.com" that I set incorrectly when I first installed eclipsephp. If this path is not modified, each time in the programming window changes, it is necessary to automatically pop up the Save dialog box, will give us the future of PHP writing a lot of trouble. Such as:
Modify the "Document root" path of "documentroot" such as:
Modified the above two items, in fact, equivalent to modify the global variables localhost, in the future in all the right-click "Properties" of the project will not have to change.
Note that "DocumentRoot" has been modified to "test" in the "bbs/" directory that supports the PHP and MySQL runtime environments. There is no "/" after "test" or the real-time browsing error!
Note Two, I "New ..." in "Include Paths" a "E:\PHP10.COM". It's boring. Here "\" and the above "documentroot" direction is not the same Oh! These details do not pay attention, but also bring trouble.
Third, PHP, MySQL configuration
Configuration of 1.PHP:
Open Eclipse's window/options/phpeclipse Web development/php, find "HTTP Query", find "Localhost" in the right box, I modified it "Http://192.168.1.XXX", My intranet IP. Then a new "Localhost2" was created, Url:http://localhost. is also boring.
The following is the extension tool item. After opening, the box to the right is shown below:
First, start the PHP command directory, which is my PHP.exe installation directory.
The second item, the parameter item, should be the default when installing eclipsephp. So, when we first install eclipse, be sure to set the installation parameters carefully.
Here is the Apache, MySQL configuration. I don't have Apache installed here, so just say MySQL configuration.
Is my MySQL installation path.
Four, the browser choice.
In the "Window/web Browser" The right arrow, choose 1, 2 is OK, is unable to choose 0.
Finally, write a PHP:
If you can't preview it now, "Ctrl+s"!
Upload a picture really trouble, my personal album has been uploaded, but can not be quoted?
Share to: