Welcome!

PHP Authors: Liz McMillan, Carmen Gonzalez, Hovhannes Avoyan, Lori MacVittie, Trevor Parsons

Related Topics: Eclipse, PHP

Eclipse: Tutorial

Configuring the PHP Version of Eclipse 3.5 RC4

Eclipse, WampServer, & Windows

Step 1: Download and install WampServer

Download the latest version of WAMP from here.

As of this writing the current version is 2.0h dated 04/16/09 and file you will download is called WampServer2.0h.exe

Run the file WampServer2.0h.exe

You will be asked to agree to the software license, approve the choice of directory, select the default browser, and decide if you want a desktop and/or quick launch icon. For the directory the default is c:\wamp but you may change to whatever you like. In later steps in this document it will be assumed you selected c:\wamp so change this to your choice of directory.

Step 2: Test the WampServer installation

Test the installation by running WampServer. An icon will appear in your tool tray. Click on it and you will see:

Select Localhost and your browser should start and the home page for WampServer should appear. If the browser reports that the page cannot be found select "Start All Services" and then refresh the page. If this does not work select "Put Online". If this doesn't work then cry and then check your firewall settings.

Step 3: Download and Install Eclipse for PHP

Download Eclipse for PHP. At the time of this writing we are a week away from the final version of 3.5. I used 3.5 Release Candidate 4 for this document.

Eclipse is packaged as a zip file so just unzip it into the folder of your choice. One possibility is in a folder within the WampServer installation. Since Eclipse is already in a folder called Eclipse I unzipped mine to c:\wamp and ended up with the following:

Step 4: Download and install the Zend PHP debugger plug-in for Eclipse

Download the Zend debugger file at this link:

Unzip this file to the same folder you unzipped Eclipse to. In my case I unzipped this file to C:\wamp

I have also installed XDebug but there is something not quite right. I suspect I have not found the right setting to tweak. As far as I can tell you can only have one of the debuggers running at a time. If you know how to get XDebug to work and if you know how to make both debuggers available at the same time then please let me know.

Step 5: Configure PHP to use the Zend Debugger in WAMP

On the Wamp menu select PHP -> php.ini

This will open the php.ini file for editing. Do not directly edit the php.ini file you may find with Windows Explorer. By going thru the menu the file you edit will be copied to its proper destination inside the Apache web server.

Add the following to the php.ini file right after the [Tidy] section:

[Tidy]
; The path to a default tidy configuration file to use when using tidy
;tidy.default_config = /usr/local/lib/php/default.tcfg
; Should tidy clean and repair output automatically?
; WARNING: Do not use this option if you are generating non-html content
; such as dynamic images
tidy.clean_output = Off
[Debugger]
zend_extension_ts=C:/wamp/eclipse/plugins
/org.zend.php.debug.debugger.win32.x86_5.2.15.v20081217
/resources/php5/ZendDebugger.dll
zend_debugger.allow_hosts=127.0.0.1, 192.168.0.2
zend_debugger.expose_remotely=always

The path after zend_extension_ts must be on one line.

The IP number 192.168.0.2 is the one assigned by my router. You must have your router assigned address.

From the Wamp menu Restart All Services and the select Localhost.

From this page select the link titled phpinfo() found under the title Tools.

This will display the PHP configuration page and there should be a section entitled Zend Debugger as shown here:

Step 6: Configure Eclipse for WampServer and the Zend Debugger

Start Eclipse and select a workspace. You will need to know the physical location of the workspace so make a note of it. In preparing this document my workspace is in:

C:\Users\neon\workspacephp

For you dinosaurs still using XP the equivalent location would be:

C:\Documents and Settings\neon\workspacephp

Remember that when there are spaces in a path you should enter the path when required with quotation marks:

"C:\Documents and Settings\neon\workspacephp"

To configure settings that will apply to all projects in this workspace go to the Windows->Preferences menu.

Open the PHP item in the tree on the left. There are two items here that need to be configured.

The first item is PHP Executables. Selecting this will display a number of versions of PHP that are included with Eclipse.

We want to use the version of PHP included with WampServer so we will add a new executable. Select Add.., give it a name, and browse to the php.exe inside the WampServer installation.

Leave out the PHP ini file and make sure the PHP debugger is set to Zend Debugger.

Make this new entry the default version of PHP.

Now we need to set up the Server.

We will edit the Default PHP Web Server but you could just as easily create a new server and set it as the default.

When you select the Default PHP Web Server and click on Edit you will see:

The only change to make is to add /workspace after http://localhost

The items on the tab for Path Mapping are left blank.

Click OK here and on the Preferences dialog and we are just minutes away from testing a PHP page.

More Stories By Ken Fogel

In 1980 I bought for myself the most wonderful toy of the day, the Apple ][+. Obsession followed quickly and by 1983 I was writing software for small and medium sized businesses in Montreal for both the Apple and the IBM PC under the company name Omnibus Systems. In the evenings I taught continuing education courses that demystified the computer to the first generation of workers who found themselves with their typewriter on the scrap heap and a PC with WordStar taking its place.

In 1990 I was invited to join the faculty at Dawson College in the Computer Science Technology program. When I joined the program the primary language was COBOL and my responsibility was to teach small systems languages such as BASIC and C/C++.

Today I am now the chairperson and program coordinator of the Computer Science Technology program at Dawson. The program's primary language is Java and the focus is on enterprise programming.

I like to write about the every day problems my students and I face in using various languages and platforms to get the job done. And from time to time I stray from the path and write about what I plan to do, what I actually get around to doing, and what I imagine I am doing.

@omniprof

@ThingsExpo Stories
SYS-CON Events announced today that SIGMA Corporation will exhibit at the Japan External Trade Organization (JETRO) Pavilion at SYS-CON's 21st International Cloud Expo®, which will take place on Oct 31 – Nov 2, 2017, at the Santa Clara Convention Center in Santa Clara, CA. uLaser flow inspection device from the Japanese top share to Global Standard! Then, make the best use of data to flip to next page. For more information, visit http://www.sigma-k.co.jp/en/.
High-velocity engineering teams are applying not only continuous delivery processes, but also lessons in experimentation from established leaders like Amazon, Netflix, and Facebook. These companies have made experimentation a foundation for their release processes, allowing them to try out major feature releases and redesigns within smaller groups before making them broadly available. In his session at 21st Cloud Expo, Brian Lucas, Senior Staff Engineer at Optimizely, will discuss how by using...
In this strange new world where more and more power is drawn from business technology, companies are effectively straddling two paths on the road to innovation and transformation into digital enterprises. The first path is the heritage trail – with “legacy” technology forming the background. Here, extant technologies are transformed by core IT teams to provide more API-driven approaches. Legacy systems can restrict companies that are transitioning into digital enterprises. To truly become a lead...
SYS-CON Events announced today that CAST Software will exhibit at SYS-CON's 21st International Cloud Expo®, which will take place on Oct 31 - Nov 2, 2017, at the Santa Clara Convention Center in Santa Clara, CA. CAST was founded more than 25 years ago to make the invisible visible. Built around the idea that even the best analytics on the market still leave blind spots for technical teams looking to deliver better software and prevent outages, CAST provides the software intelligence that matter ...
SYS-CON Events announced today that Daiya Industry will exhibit at the Japanese Pavilion at SYS-CON's 21st International Cloud Expo®, which will take place on Oct 31 – Nov 2, 2017, at the Santa Clara Convention Center in Santa Clara, CA. Ruby Development Inc. builds new services in short period of time and provides a continuous support of those services based on Ruby on Rails. For more information, please visit https://github.com/RubyDevInc.
As businesses evolve, they need technology that is simple to help them succeed today and flexible enough to help them build for tomorrow. Chrome is fit for the workplace of the future — providing a secure, consistent user experience across a range of devices that can be used anywhere. In her session at 21st Cloud Expo, Vidya Nagarajan, a Senior Product Manager at Google, will take a look at various options as to how ChromeOS can be leveraged to interact with people on the devices, and formats th...
SYS-CON Events announced today that Yuasa System will exhibit at the Japan External Trade Organization (JETRO) Pavilion at SYS-CON's 21st International Cloud Expo®, which will take place on Oct 31 – Nov 2, 2017, at the Santa Clara Convention Center in Santa Clara, CA. Yuasa System is introducing a multi-purpose endurance testing system for flexible displays, OLED devices, flexible substrates, flat cables, and films in smartphones, wearables, automobiles, and healthcare.
SYS-CON Events announced today that Taica will exhibit at the Japan External Trade Organization (JETRO) Pavilion at SYS-CON's 21st International Cloud Expo®, which will take place on Oct 31 – Nov 2, 2017, at the Santa Clara Convention Center in Santa Clara, CA. Taica manufacturers Alpha-GEL brand silicone components and materials, which maintain outstanding performance over a wide temperature range -40C to +200C. For more information, visit http://www.taica.co.jp/english/.
SYS-CON Events announced today that SourceForge has been named “Media Sponsor” of SYS-CON's 21st International Cloud Expo, which will take place on Oct 31 – Nov 2, 2017, at the Santa Clara Convention Center in Santa Clara, CA. SourceForge is the largest, most trusted destination for Open Source Software development, collaboration, discovery and download on the web serving over 32 million viewers, 150 million downloads and over 460,000 active development projects each and every month.
SYS-CON Events announced today that Nihon Micron will exhibit at the Japan External Trade Organization (JETRO) Pavilion at SYS-CON's 21st International Cloud Expo®, which will take place on Oct 31 – Nov 2, 2017, at the Santa Clara Convention Center in Santa Clara, CA. Nihon Micron Co., Ltd. strives for technological innovation to establish high-density, high-precision processing technology for providing printed circuit board and metal mount RFID tags used for communication devices. For more inf...
Enterprises have taken advantage of IoT to achieve important revenue and cost advantages. What is less apparent is how incumbent enterprises operating at scale have, following success with IoT, built analytic, operations management and software development capabilities – ranging from autonomous vehicles to manageable robotics installations. They have embraced these capabilities as if they were Silicon Valley startups. As a result, many firms employ new business models that place enormous impor...
SYS-CON Events announced today that MIRAI Inc. will exhibit at the Japan External Trade Organization (JETRO) Pavilion at SYS-CON's 21st International Cloud Expo®, which will take place on Oct 31 – Nov 2, 2017, at the Santa Clara Convention Center in Santa Clara, CA. MIRAI Inc. are IT consultants from the public sector whose mission is to solve social issues by technology and innovation and to create a meaningful future for people.
Widespread fragmentation is stalling the growth of the IIoT and making it difficult for partners to work together. The number of software platforms, apps, hardware and connectivity standards is creating paralysis among businesses that are afraid of being locked into a solution. EdgeX Foundry is unifying the community around a common IoT edge framework and an ecosystem of interoperable components.
SYS-CON Events announced today that Dasher Technologies will exhibit at SYS-CON's 21st International Cloud Expo®, which will take place on Oct 31 - Nov 2, 2017, at the Santa Clara Convention Center in Santa Clara, CA. Dasher Technologies, Inc. ® is a premier IT solution provider that delivers expert technical resources along with trusted account executives to architect and deliver complete IT solutions and services to help our clients execute their goals, plans and objectives. Since 1999, we'v...
SYS-CON Events announced today that TidalScale, a leading provider of systems and services, will exhibit at SYS-CON's 21st International Cloud Expo®, which will take place on Oct 31 - Nov 2, 2017, at the Santa Clara Convention Center in Santa Clara, CA. TidalScale has been involved in shaping the computing landscape. They've designed, developed and deployed some of the most important and successful systems and services in the history of the computing industry - internet, Ethernet, operating s...
SYS-CON Events announced today that Massive Networks, that helps your business operate seamlessly with fast, reliable, and secure internet and network solutions, has been named "Exhibitor" of SYS-CON's 21st International Cloud Expo ®, which will take place on Oct 31 - Nov 2, 2017, at the Santa Clara Convention Center in Santa Clara, CA. As a premier telecommunications provider, Massive Networks is headquartered out of Louisville, Colorado. With years of experience under their belt, their team of...
SYS-CON Events announced today that IBM has been named “Diamond Sponsor” of SYS-CON's 21st Cloud Expo, which will take place on October 31 through November 2nd 2017 at the Santa Clara Convention Center in Santa Clara, California.
Infoblox delivers Actionable Network Intelligence to enterprise, government, and service provider customers around the world. They are the industry leader in DNS, DHCP, and IP address management, the category known as DDI. We empower thousands of organizations to control and secure their networks from the core-enabling them to increase efficiency and visibility, improve customer service, and meet compliance requirements.
SYS-CON Events announced today that TidalScale will exhibit at SYS-CON's 21st International Cloud Expo®, which will take place on Oct 31 – Nov 2, 2017, at the Santa Clara Convention Center in Santa Clara, CA. TidalScale is the leading provider of Software-Defined Servers that bring flexibility to modern data centers by right-sizing servers on the fly to fit any data set or workload. TidalScale’s award-winning inverse hypervisor technology combines multiple commodity servers (including their ass...
As hybrid cloud becomes the de-facto standard mode of operation for most enterprises, new challenges arise on how to efficiently and economically share data across environments. In his session at 21st Cloud Expo, Dr. Allon Cohen, VP of Product at Elastifile, will explore new techniques and best practices that help enterprise IT benefit from the advantages of hybrid cloud environments by enabling data availability for both legacy enterprise and cloud-native mission critical applications. By rev...