Skip to main content

Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » PHP Development Tools (PDT) » Run as PHP Wen Browser lost in forever land(How do I configure PHP PDT Eclipse?)
Run as PHP Wen Browser lost in forever land [message #690855] Thu, 30 June 2011 10:28 Go to next message
Robert  is currently offline Robert Friend
Messages: 14
Registered: September 2010
Junior Member
Just trying to get a PHP file to run appropriately or debug / whatever.

I've followed my examples starting from clean box and nothing seems to work right. I am guessing its configuration/setup but I have no idea.

What I have:
PHP 5.2.17 Win32 VC6
PDT 2.2 from
Tomcat 7.0.14
Eclipse Helios 3.6.2
MySQL 5.5.13 (with connector/driver)

I think those are the relevant components for my issue.

Window Preferences: PHP Executables set to C:\Program Files\PHP\php.exe (ini similar)
Window Preferences: PHP Server set to http://localhost:8080 (Tomcat root)
Window Preferences: Tomcat set to V7 and home=C:\Program Files\apache-tomcat-7.0.14
Server View: Tomcat localhost:8080 works fine - start and stop - fine
Data Source View: MySQL connection works fine

My quandary: How do I setup and debug PHP-using projects?

My PHP File(s): attached (I run the html included new_character.php)


1) To me it seems despite the examples I get from numerous places that PHP files DO NOT debug properly in the PDT-related PHP project. Despite window preferences configuration they only SOMETIMES allow the Run as-> PHP Web Browser option. When I choose generic Run Configurations oprions I get this:
which seems appropriate. I hit run.
A browser tab is activated with nothing in it.
The run hangs with a green progress bar that never stops. No other information.

2) I then thought maybe the web server is not understanding the PHP project so I created a Dynamic Web Project in the same workspace that linked with Tomcat (more familiar to me) and moved the PHP file(s) to the Webcontent root. Again the same run as with Tomcat added. Tried both configurations with same hang as before and the Tomcat server run told me Tomcat was already running (not true except as maybe relates to this project).


1) PHP itself somehow isnt working. Is there a test I can run for that?
2) I am missing some configuration piece that 30 examples on the web are not telling me.
3) I have no idea - HELP!
  • Attachment: PHPrunas.bmp
    (Size: 1.46MB, Downloaded 2285 times)
  • Attachment: new_character.php
    (Size: 1.03KB, Downloaded 227 times)
  • Attachment: db.php
    (Size: 0.43KB, Downloaded 195 times)
  • Attachment: constants.php
    (Size: 0.30KB, Downloaded 217 times)
Re: Run as PHP Wen Browser lost in forever land [message #691208 is a reply to message #690855] Fri, 01 July 2011 00:07 Go to previous message
Toshihiro Izumi is currently offline Toshihiro IzumiFriend
Messages: 360
Registered: July 2009
Location: Japan
Senior Member
Why you can run php on Tomcat? How did you setup? What did you do?
Try eclipse *after* you succeeded in running php on Tomcat.
Previous Topic:Looking for download link for PDT SDK package that can be installed through Eclipse, offline.
Next Topic:PHP Syntax highlighting not showing in Svn repository exploring
Goto Forum:

Current Time: Wed May 23 05:35:23 GMT 2018

Powered by FUDForum. Page generated in 0.01996 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top