Jump to content

PHP on Eclipse with PDT?


cougar23

Recommended Posts

This is my first post and I'm a newbie, so I apoligize in advance if this is the incorrect place to post this question:

 

I've downloaded PDT with Eclipse and have created a super-basic file that's an index.php:

 

<html>

<body>

<?php echo 'hello world'; ?>

</body>

</html>

 

I've set the Default Browser to be my external Internet Explorer browser.  When I go to Run -> PHP Web Page with the file designated as /myproject/index.php and then Run.  I get a 404 page not found error.  Is the page not being deployed on my Apache server? And if not, how can I get this working?

 

Again, I apoligize if this is a newbie question.  Thanks in advance for your help.

Link to comment
https://forums.phpfreaks.com/topic/104312-php-on-eclipse-with-pdt/
Share on other sites

I finally got it figured out.  As far as I can tell, you hav to set your workspace to the Apache2.2/htdocs folder.  I was trying to use the general workspace I have for all projects (C:\workspace) and then somehow deploy to Apache2.2, similar to dropping a WAR to Tomcat in Java. After looking through all kinds of setup tutorials and documentation, I don't think this is possible with PDT on Eclipse.

Ive used eclipse for flex a bit and from what i can remember it was a nice editor. I guess that the PDT should give it the php functionality of zend studio, which is actually really good. Personally im stuck on dreamweaver 8 (cs3 is a bit heavy and buggy) and im really glad about it. It is really light and its code coloring, code hinting and site management are more then what i need. I definitely suggest it.

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.