Hi,
I use Eclipse to program in java. So, I have the Eclipse version for java projects.
Now, I wish to also use Eclipse to write php code and I installed de PDT plugin.
The problem is that the workspace path is "mydocuments/java_projects", while de localhost root is "C/htdocs".
If I try to execute a php page there is an error in the browser tab of Eclipse: the path is uncorrect becuse the file are saved in "documents/java_project", while Eclipse try to find this file in "http://localhost/php/file.php".

How I must do to solve this problem?
I must to set a different workspace for php?

In the PHP project configuration youi can create mappings so eclipse is able to create the correct URL based on the filename.

If the project itself is not placed in the server root this would never work.

Please move the project from the workspace into the directory structure of your webserver (or create an alias in your webserver configuration which might be the easiest) and then re-import the existing project w/o moving it into the workspace again.