[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
|
[news.eclipse.tools.php] Re: includes that don't open
|
On 2007-02-26 14:56:30 -0800, Hertzel Armengol <hertzel@xxxxxxxxxxx> said:
Hi I have something like
require_once("foo.inc");
if I try to open that include using control + click , or even using the
outline nothing happens... any ideas?
my main file is foo.php
I came into this group for the same, or similar reason:
I have a large PHP project inside of Eclipse with PDT. I have a /htdocs
folder and an /includes folder at the root of my project. The PHP
Includes path on the target server is to the includes page below the
htdocs. Our includes are done as follows:
/project/htdocs/authentication.php
require_once("auth.inc.php");
auth.inc.php is located here:
/project/includes/auth.inc.php
I cannot control-click the path in require_once() to open it. Setting
the PHP include paths in the project to the includes directory also
does not rectify the problem. To make matters worse, changing the path
to:
required_once("../includes/auth.inc.php");
Does not work. These two work, however:
required_once("includes/auth.inc.php");
required_once("/includes/auth.inc.php");
This works in the project, but not in the deployed server environment.
Lastly, this is Eclipse running on Windows, which does not have PHP
installed. The project itself is actually a SMB share to a Debian Linux
machine (my L: drive), which is running PHP. I've also added an
"include_path" variable to the project inthe hopes that would trigger
it, but it doesn't.
I verified all this before posting by creating a dummy PDT project,
with a htdocs and includes folder off the project root. In the htdocs
folder, I created an index.php file, which contained this:
<?php
require_once("test.inc.php");
?>
In the includes folder, I created the test.inc.php, with this code:
<?php
echo("hello world");
?>
Before setting up paths or variables, I tried to control click the URL
and it didn't work.
I set up an include path in the project to point to the includes
folder, and I still couldn't control click the file. I then also set up
the includes_path variable pointing to the includes folder, and still I
could not control click the path in the index.php file.
I'm assuming this is a bug, or I'm greatly missing the point here. I've
read the documentation that I could find, and there's no mention of
this. Any information would be great.
Eclipse 3.2.2
PDT 0.7 (downloaded on Friday 2/23)
Windows XP w/SP2
JRE 6
Adam.