Beginner PHP, about the Eclipse Platform development Environment Configuration Solutions

Source: Internet
Author: User
Beginner PHP, about the Eclipse Platform development Environment configuration
I beginner PHP, in preparation for development platform, because often do some JSP development, so the machine is equipped with

JDK 1.5.0_17, Eclipse 3.4.2, MyEclipse 7.01, Tomcat 5.5.27, MySql 5.0.77, in order to learn PHP, has installed Apache 2.2.11 and zip version of Php 5.2.9, and has been tuned, PHP code can be executed via localhost:80

Yesterday Zend Studio for Eclipse 6.1 was very annoying, obviously there is an eclipse platform on the machine, there are now an older version of the, and this Studio also comes with PHP 5.2.8 what, very annoying, so give up this All-in-one platform, want to assemble an Eclipse + PDT

Then follow the PDT installation wiki (http://wiki.eclipse.org/PDT/Installation) to do, do before the MyEclipse unloaded, and then I thread a few components, the finished component



Next should be able to use my eclipse to do PHP, because I really do not have a little sense of PHP environment, previously written PHP, but also with Notepad to write, so I have some questions to ask the elder to answer:

1. With regard to the debugger, after my eclipse reached the above state, I installed Zend Debug from HTTP://DOWNLOADS.ZEND.COM/PDT using the automatic installation of Eclipse, but prompted before starting the download



Said to be unable to find Eclipse-debug 3.4.0 bag ..., how to solve? I'm the 3.4.2 of the outfit. How to solve it?

2. My Apache server's home directory is if it is set in D:\Code\Eclipse, that I new PHP project, I need to put my project into this directory? Is this PDT not automatically deployed to my home directory as a JSP in the Run as PHP web and then executed? What is the role of PHP Server Path mapping? Not for automatic deployment?


3. What other components or tools do I need to make a convenient platform? WAMP, the Zend Framework, what are these things?

------Solution--------------------
For a few years PHP, have not used such tools. I hope that we can not use Java thinking to deal with PHP.
------Solution--------------------
Now PHP Best development platform is Zend Studio 5.5
The Eclipse version has a good orientation but needs to be improved
------Solution--------------------
Dreamweaver and a few other debugging stuff
------Solution--------------------
Explore
Many people see this problem, why no one answer? Do you have no requirement for the platform or do you feel that the problem is too elementary? It's a little bit of a deal.

------Solution--------------------
Haha, yesterday just studied this configuration, at first I also met with the landlord the same problem, it is easy to solve:
1. When you do not need to download DLTK, directly with http://download.eclipse.org/technology/dltk/updates-dev/1.0 this connection in thread, should be a PHP what packaging can be, I was in trouble, so I chose all the outfit, OK.
2. For example, I put all the eclipse projects under D:\eclipse\Project, then modify httpd.conf, add:
Alias/workspace "D:\eclipse\Project"

Options Indexes multiviews execcgi
DirectoryIndex index.php
AllowOverride None
Order Allow,deny
Allow from all
AddType application/x-httpd-php. php. phtml. php3. PhP4
AddType Application/x-httpd-php-source. Phps

Then add a server directly, the name is random, the URL is set to Http://localhost/Workspace, then your PHP will be able to run directly in eclipse
------Solution--------------------
Local debug is still needed ~ Good program will not be affected by the different version

In addition, the landlord would like to use eclipse with more convenient than Zend Studio IDE is not possible
He is the integration of PDT itself ~ Some features are unique to it

And it's a mistake to put Java ideas on PHP.
There's really nothing to compare.
------Solution--------------------
discuss
Thank you for the warm-hearted answers upstairs, the first few days of the motherboard burned, embarrassed, just change a machine

PHP has written so far, the code is still thousands, do not dare to comment on the idea of PHP development, PHP's open source and Java's similarities and differences, and no matter how much

To Froole: You mentioned log4php, PEAR log, I have not seen, I will go to Google Next, and the Zend framework in the end is what to use?

To li_d_s: The way you configure it also requires me to create a new project to the Apache home directory, this is a static configuration, there is no JSP-like runtime dynamic department ...

------Solution--------------------
Eclipse is configured without the need for features such as Tomcat.

As long as the DLT and PDT are available,
Suggest LZ to official download PDT All-in-one, this is more convenient.
------Solution--------------------
Unless you're writing Java, you really don't like using eclipse.
Always write code with Phpdesigner or phped these lightweight tools.

PHP is not Java, non-eclipse is not

PS:PDT feeling is not as good as Zend, Zend6 is better than Zend5 good
------Solution--------------------
The eclipse design is primarily for Java
PHP has no deployment at all ... How to move static

------Solution--------------------
All-in-one PDT has a version that contains Zend Debug. Without the other. Need to configure PHP execution path, and php.ini

About Workspace I didn't set Apache wwwroot as Eclipse's workspace, just set workspace as a virtual directory.

I'm using a phpeclipse,
  • 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.