Skip to main content
  • Log in
  • Manage Cookies
Eclipse Foundation
Download
  • Projects
  • Working Groups
  • Members
  • Community
    • Marketplace
    • Events
    • Planet Eclipse
    • Newsletter
    • Videos
    • Blogs
  • Participate
    • Report a Bug
    • Forums
    • Mailing Lists
    • Wiki
    • IRC
    • Research
  • Eclipse IDE
    • Download
    • Learn More
    • Documentation
    • Getting Started / Support
    • How to Contribute
    • IDE and Tools
    • Newcomer Forum
  • More
      • Community

      • Marketplace
      • Events
      • Planet Eclipse
      • Newsletter
      • Videos
      • Blogs
      • Participate

      • Report a Bug
      • Forums
      • Mailing Lists
      • Wiki
      • IRC
      • Research
      • Eclipse IDE

      • Download
      • Learn More
      • Documentation
      • Getting Started / Support
      • How to Contribute
      • IDE and Tools
      • Newcomer Forum
  1. Home
  2. Blogs
  3. Wayne Beaton's blog
  4. PHPEclipse and XAMPP

PHPEclipse and XAMPP

Sunday, September 25, 2005 - 16:05 by Wayne Beaton

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.

Tags: 
Uncategorized
Source: 
https://waynebeaton.wordpress.com/2005/09/25/phpeclipse-and-xampp/
  • Wayne Beaton's blog
  • Sign in to post comments.

Eclipse Foundation Blogs

  • Ian Skerrett (857 posts)
  • Wayne Beaton (796 posts)
  • Mike Milinkovich (290 posts)
  • Benjamin Cabé (131 posts)
  • Ivar Grimstad (103 posts)
  • Tanja Obradovic (39 posts)
  • Thabang Mashologu (32 posts)
  • Christopher Guindon (15 posts)
  • Roxanne Joncas (14 posts)
  • Paul Buck (11 posts)
  • Frédéric Desbiens (11 posts)
  • Mikaël Barbero (9 posts)
  • Jameka Woodberry (9 posts)
  • Brian King (8 posts)
  • Hudson Kelly (8 posts)
  • Denis Roy (5 posts)
  • Gabriela Motroc (4 posts)
  • Gael Blondelle (3 posts)
  • Shabnam Mayel (3 posts)
  • Shanda Giacomoni (1 posts)
  • Paul White (1 posts)
  • Jacob Harris (1 posts)
  • Stephanie Swart (1 posts)
  • Michael Plagge (1 posts)
  • Sharon Corbett (1 posts)

Recent blog posts

  • Three Good Reasons to Complete the Jakarta EE Developer Survey
  • Hashtag Jakarta EE #66
  • Why Java Developers Continue to Rely on Jakarta EE
  • Open VSX: A Vendor-Neutral Home for VS Code Extensions
  • Hashtag Jakarta EE #65
  • Introducing New Che Workspaces on OpenShift
  • Eclipse Jetty 11 Supports the Big Bang
  • Meet Adoptium: Open Source Java Runtimes for Enterprises
  • Support for Asian Communities from the Eclipse Foundation
  • Hashtag Jakarta EE #64
More

Eclipse Foundation

  • About Us
  • Contact Us
  • Donate
  • Members
  • Governance
  • Code of Conduct
  • Logo and Artwork
  • Board of Directors

Legal

  • Privacy Policy
  • Terms of Use
  • Copyright Agent
  • Eclipse Public License
  • Legal Resources

Useful Links

  • Report a Bug
  • Documentation
  • How to Contribute
  • Mailing Lists
  • Forums
  • Marketplace

Other

  • IDE and Tools
  • Projects
  • Working Groups
  • Research@Eclipse
  • Report a Vulnerability
  • Service Status

Copyright © Eclipse Foundation. All Rights Reserved.

Back to the top