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
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 http://download.eclipse.org/tools/pdt/updates/2.2/milestones
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.

Configuration:
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)

Observations:

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:
index.php/fa/3188/0/
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).

Suspicions:

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 988 times)
  • Attachment: new_character.php
    (Size: 1.03KB, Downloaded 115 times)
  • Attachment: db.php
    (Size: 0.43KB, Downloaded 110 times)
  • Attachment: constants.php
    (Size: 0.30KB, Downloaded 118 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 Izumi
Messages: 348
Registered: July 2009
Location: Japan
Senior Member
Robert,
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 Oct 01 10:16:53 GMT 2014

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

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