Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » PHP Development Tools (PDT) » require with global variables(require $_SERVER['DOCUMENT_ROOT'])
require with global variables [message #902286] Thu, 16 August 2012 18:28 Go to next message
Sergei G is currently offline Sergei G
Messages: 5
Registered: June 2012
Junior Member
My scripts start with line

require $_SERVER['DOCUMENT_ROOT'] . '/../lib/host.inc.php';

where I initialize several variables. I have noticed that latest Eclipse PDT does not know the location of $_SERVER['DOCUMENT_ROOT'] and as a result it does not initialize any other variables referenced in include file.

Is there a way to configure PDT so it can know what the value of $_SERVER['DOCUMENT_ROOT'] is.


Thanks
Re: require with global variables [message #902744 is a reply to message #902286] Mon, 20 August 2012 08:56 Go to previous messageGo to next message
Jacek Pospychala is currently offline Jacek Pospychala
Messages: 159
Registered: July 2009
Senior Member
hi Sergei,

thanks for sharing.
I opened bug for this in PDT bugzilla https://bugs.eclipse.org/bugs/show_bug.cgi?id=387572
Re: require with global variables [message #915309 is a reply to message #902286] Mon, 17 September 2012 03:20 Go to previous message
Zhongwei Zhao is currently offline Zhongwei Zhao
Messages: 11
Registered: July 2009
Junior Member
hi Sergei,

Now PDT won't be able to provide vars from outside the workspace.
Maybe we'll work on it somewhere in future...

Thanks!
Previous Topic:Running PHP file give me "This program cannot display the webpage"
Next Topic:Editor misbehaving when line exceeds screen width
Goto Forum:
  


Current Time: Mon Oct 20 10:02:27 GMT 2014

Powered by FUDForum. Page generated in 0.01647 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software