PHPEclipse and XAMPP

At the Eclipse Foundation, we tend to eat our own dog food. Foundation employees use Eclipse itself to generate content for the website (I can’t speak for individual project teams, but I’m pretty sure that most of them do as well). In particular, we use PHPEclipse to create and edit most of the content (which makes pretty heavy use of PHP). I’ve just recently started using the 1.1.7 version which prereqs the web tools project. All-in-all, it’s pretty cool stuff.

One of the neater features of PHPEclipse is integration with XAMPP. XAMPP is a distribution of several open source products including Apache HTTP Server with PHP support and MySQL; it’s a one-click (more or less) install of a collection of key products for testing web applications. Essentially, you configure the Apache installation within XAMPP to have its DocumentRoot point at your workspace and Apache will serve up whatever you’ve got saved there. PHPEclipse provides a view with a browser that automatically updates whenever you save a PHP file you’re editing. It also works for HTML files. It’s not quite a WYSIWYG editor, but it’s the next best thing (you edit in HTML and the view shows you what it’s going to look like). You can even test database interaction by configuring MySQL.

PHPEclipse even provides some handy buttons in the toolbar to start and stop the XAMPP package with a single click.

There is an unfortunate security hole in setting this up. By configuring Apache to serve content from your Eclipse workspace, you are essentially making public anything you have loaded there. It might make sense to keep a separate workspace (or perhaps a separate directory with the web projects) for your web content. On the plus side, Apache is by default configured not to serve up directory listings so anybody who wants to peek at your workspace contents is not going to have a super easy time of it. I’ve been toying with sorting out how to prevent Apache from serving content to anybody but localhost; I’m pretty sure this is possible, but have never tried to make it happen.

Anyway, the combination of PHPEclipse, Web Tools, and XAMPP is pretty cool.

This entry was posted in Uncategorized. Bookmark the permalink.

14 Responses to PHPEclipse and XAMPP

  1. Dan Blackburn says:

    “Blogs Get People Excited,” Media Anti-Censorship Handbook Warns”Blogs get people excited. Or else they disturb and worry them. Some people distrust them.Great information on your blog! Are you interested in make money from home ? If so, I have a make money from home site.Feel free to drop by and tell me what you think.

  2. Superbiji says:

    I was using phpeclipse.but now I’m using xored php plugin..It is more robust and the important thing it is not bloated..

  3. Wayne says:

    Cool. I’ll take a look. Thanks for the pointer.

  4. snapp_action says:

    You should be able to change the <Directory> listing to allow only localhost:<Directory /www/mydirectory>Order deny,allowDeny from allAllow from localhost</Directory>

  5. Wayne says:

    Thanks. I’ll try that.

  6. brokenmonkey says:

    I like your blog a lot. Lots better than most I’ve seen! website design bathurst

  7. Pingback: Create Websites on Auto Pilot

  8. Pingback: Project Black Mask Review - Another Scam?

  9. Pingback: Lottery Winning Systems

  10. Pingback: Rosie Godard

  11. Pingback: Create websites on auto pilot with RSSEvolution

  12. Pingback: Free Aricles and reviews on everything by ESNAPP

  13. Pingback:

  14. Pingback:

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s