Eclipse PDT: put my workspace under htdocs or is there a build directive "move files"?

I am using Eclipse PDT with a Zend community server for developing PHP.

If I write some code and click Run As ... PHP Webpage, I get "Page cannot be found." This makes sense, since my workspace is disabled in the folder of my documents, and not in the htdocs Zend / Apache tree.

Thus, one option would be to move my workspace to a folder under Apache htdocs. But that just seems wrong ;-) Also, I save my workspace in the Dropbox folder.

Is there an alternative directive / configuration parameter for the Eclipse PDT that says, "When I say Run or Build, I want you to copy the project to folder X and run it as a web page." Or maybe something else I am missing in the Eclipse PDT?

+3
source share
2 answers

I found a method using Ant: http://www.tellingmachine.com/post/Configuring-Eclipse-PDT-to-work-with-Ant-build-tasks.aspx

Here is my method for developing PHP on Windows in Eclipse:

  • Download the Eclipse environment for the entire Zend system.
  • Download Zend CE Server
  • Zend , c:\Zend. Program Files, , .
  • Ant build
  • -. , ... php script -.

Eclipse PDT WAMP . (1) htdocs (2) Ant .

0

Source: https://habr.com/ru/post/1752129/


All Articles