The Wayback Machine - https://web.archive.org/web/20160912225734/http://eclipse.sys-con.com/node/1006742

Welcome!

Eclipse Authors: Liz McMillan, Elizabeth White, XebiaLabs Blog, Ken Fogel, Sematext Blog

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
Internet of @ThingsExpo, taking place November 1-3, 2016, at the Santa Clara Convention Center in Santa Clara, CA, is co-located with 19th Cloud Expo and will feature technical sessions from a rock star conference faculty and the leading industry players in the world. The Internet of Things (IoT) is the most profound change in personal and enterprise IT since the creation of the Worldwide Web more than 20 years ago. All major researchers estimate there will be tens of billions devices - comp...
SYS-CON Events announced today that Roundee / LinearHub will exhibit at the WebRTC Summit at @ThingsExpo, which will take place on November 1–3, 2016, at the Santa Clara Convention Center in Santa Clara, CA. LinearHub provides Roundee Service, a smart platform for enterprise video conferencing with enhanced features such as automatic recording and transcription service. Slack users can integrate Roundee to their team via Slack’s App Directory, and '/roundee' command lets your video conference ...
The vision of a connected smart home is becoming reality with the application of integrated wireless technologies in devices and appliances. The use of standardized and TCP/IP networked wireless technologies in line-powered and battery operated sensors and controls has led to the adoption of radios in the 2.4GHz band, including Wi-Fi, BT/BLE and 802.15.4 applied ZigBee and Thread. This is driving the need for robust wireless coexistence for multiple radios to ensure throughput performance and th...
Cloud computing is being adopted in one form or another by 94% of enterprises today. Tens of billions of new devices are being connected to The Internet of Things. And Big Data is driving this bus. An exponential increase is expected in the amount of information being processed, managed, analyzed, and acted upon by enterprise IT. This amazing is not part of some distant future - it is happening today. One report shows a 650% increase in enterprise data by 2020. Other estimates are even higher....
For basic one-to-one voice or video calling solutions, WebRTC has proven to be a very powerful technology. Although WebRTC’s core functionality is to provide secure, real-time p2p media streaming, leveraging native platform features and server-side components brings up new communication capabilities for web and native mobile applications, allowing for advanced multi-user use cases such as video broadcasting, conferencing, and media recording.
19th Cloud Expo, taking place November 1-3, 2016, at the Santa Clara Convention Center in Santa Clara, CA, will feature technical sessions from a rock star conference faculty and the leading industry players in the world. Cloud computing is now being embraced by a majority of enterprises of all sizes. Yesterday's debate about public vs. private has transformed into the reality of hybrid cloud: a recent survey shows that 74% of enterprises have a hybrid cloud strategy. Meanwhile, 94% of enterpri...
SYS-CON Events announced today that China Unicom will exhibit at the 19th International Cloud Expo, which will take place on November 1–3, 2016, at the Santa Clara Convention Center in Santa Clara, CA. China United Network Communications Group Co. Ltd ("China Unicom") was officially established in 2009 on the basis of the merger of former China Netcom and former China Unicom. China Unicom mainly operates a full range of telecommunications services including mobile broadband (GSM, WCDMA, LTE F...
Web Real-Time Communication APIs have quickly revolutionized what browsers are capable of. In addition to video and audio streams, we can now bi-directionally send arbitrary data over WebRTC's PeerConnection Data Channels. With the advent of Progressive Web Apps and new hardware APIs such as WebBluetooh and WebUSB, we can finally enable users to stitch together the Internet of Things directly from their browsers while communicating privately and securely in a decentralized way.
If you’re responsible for an application that depends on the data or functionality of various IoT endpoints – either sensors or devices – your brand reputation depends on the security, reliability, and compliance of its many integrated parts. If your application fails to deliver the expected business results, your customers and partners won't care if that failure stems from the code you developed or from a component that you integrated. What can you do to ensure that the endpoints work as expect...
IoT is fundamentally transforming the auto industry, turning the vehicle into a hub for connected services, including safety, infotainment and usage-based insurance. Auto manufacturers – and businesses across all verticals – have built an entire ecosystem around the Connected Car, creating new customer touch points and revenue streams. In his session at @ThingsExpo, Macario Namie, Head of IoT Strategy at Cisco Jasper, will share real-world examples of how IoT transforms the car from a static p...
WebRTC adoption has generated a wave of creative uses of communications and collaboration through websites, sales apps, customer care and business applications. As WebRTC has become more mainstream it has evolved to use cases beyond the original peer-to-peer case, which has led to a repeating requirement for interoperability with existing infrastructures. In his session at @ThingsExpo, Graham Holt, Executive Vice President of Daitan Group, will cover implementation examples that have enabled ea...
Fact is, enterprises have significant legacy voice infrastructure that’s costly to replace with pure IP solutions. How can we bring this analog infrastructure into our shiny new cloud applications? There are proven methods to bind both legacy voice applications and traditional PSTN audio into cloud-based applications and services at a carrier scale. Some of the most successful implementations leverage WebRTC, WebSockets, SIP and other open source technologies. In his session at @ThingsExpo, Da...
Identity is in everything and customers are looking to their providers to ensure the security of their identities, transactions and data. With the increased reliance on cloud-based services, service providers must build security and trust into their offerings, adding value to customers and improving the user experience. Making identity, security and privacy easy for customers provides a unique advantage over the competition.
In his session at @ThingsExpo, Kausik Sridharabalan, founder and CTO of Pulzze Systems, Inc., will focus on key challenges in building an Internet of Things solution infrastructure. He will shed light on efficient ways of defining interactions within IoT solutions, leading to cost and time reduction. He will also introduce ways to handle data and how one can develop IoT solutions that are lean, flexible and configurable, thus making IoT infrastructure agile and scalable.
SYS-CON Events announced today that Numerex Corp, a leading provider of managed enterprise solutions enabling the Internet of Things (IoT), will exhibit at the 19th International Cloud Expo | @ThingsExpo, which will take place on November 1–3, 2016, at the Santa Clara Convention Center in Santa Clara, CA. Numerex Corp. (NASDAQ:NMRX) is a leading provider of managed enterprise solutions enabling the Internet of Things (IoT). The Company's solutions produce new revenue streams or create operating...
The Internet of Things can drive efficiency for airlines and airports. In their session at @ThingsExpo, Shyam Varan Nath, Principal Architect with GE, and Sudip Majumder, senior director of development at Oracle, will discuss the technical details of the connected airline baggage and related social media solutions. These IoT applications will enhance travelers' journey experience and drive efficiency for the airlines and the airports. The session will include a working demo and a technical d...
Although it has gained significant traction in the consumer space, IoT is still in the early stages of adoption in enterprises environments. However, many companies are working on initiatives like Industry 4.0 that includes IoT as one of the key disruptive technologies expected to reshape businesses of tomorrow. The key challenges will be availability, robustness and reliability of networks that connect devices in a business environment. Software Defined Wide Area Network (SD-WAN) is expected to...
As cloud adoption continues to transform business, today’s global enterprises are challenged with managing a growing amount of information living outside of the data center. The rapid adoption of IoT and increasingly mobile workforce are exacerbating the problem. Ensuring secure data sharing and efficient backup poses capacity and bandwidth considerations as well as policy and regulatory compliance issues.
Why do your mobile transformations need to happen today? Mobile is the strategy that enterprise transformation centers on to drive customer engagement. In his general session at @ThingsExpo, Roger Woods, Director, Mobile Product & Strategy – Adobe Marketing Cloud, covered key IoT and mobile trends that are forcing mobile transformation, key components of a solid mobile strategy and explored how brands are effectively driving mobile change throughout the enterprise.
Developing software for the Internet of Things (IoT) comes with its own set of challenges. Security, privacy, and unified standards are a few key issues. In addition, each IoT product is comprised of (at least) three separate application components: the software embedded in the device, the back-end service, and the mobile application for the end user’s controls. Each component is developed by a different team, using different technologies and practices, and deployed to a different stack/target –...