[Phpwm] PHP eclipse problem

Elliot Smith elliot at townx.org
Wed Apr 26 09:28:36 BST 2006


Dear Pete,

Although I don't organise my code like this, from what I know of 
PHPEclipse, it should resolve paths correctly if you did your includes 
something like this (presuming you set projectname as the root directory 
when creating your Eclipse project):

require_once('../includes/file.php');

I assume you're doing something like this, rather than using absolute 
paths? Another approach may be to just exclude those messages from the 
problems list using a filter.

Elliot


pete graham wrote:

> I have been experimenting with PHPeclipse yesterday and today. Here is 
> a fairly big problem that I have run into that has stopped me from 
> using it.
>  
> Eclipse generates a lot of warnings of type: "Include filename 
> 'blah.php' doesn't exist in project."
>
> I tried to explicitly set the "Include Path" for the project in 
> "Project->Properties->PHP Project Settings->Include Paths" (although 
> this shouldn't be necessary because these paths are dynamically set by 
> a set_include_path() call in the script). This hasn't solved the problem.
>  
> All my projects have this structure
>  
> projectname/htdocs/        # actual website root
> projectname/includes/      # mostly php classes and files 
> with programming logic 
> projectname/templates/   # html files, headers footers, etc
>  
> I find this an effective way of organising the files. It seems the 
> only way to get PHPeclipse to not generate the errors is to place all 
> code in the website root which I really don't want to do. Can anyone 
> help me on this problem?
>
> I saw on a forum post that "working sets" may be able to solve my 
> problem, but I'm quite unclear on what these are.
>
> Pete
>
>------------------------------------------------------------------------
>
>_______________________________________________
>Phpwm mailing list
>Phpwm at mailman.lug.org.uk
>https://mailman.lug.org.uk/mailman/listinfo/phpwm
>  
>




More information about the Phpwm mailing list