Vincent Vega Posted July 16, 2007 Share Posted July 16, 2007 What is the proper way to include files? For example the registrars module. Directory: /httpdocs/modules/registrars/vega/ Action file: /httpdocs/modules/registrars/vega/vega.php Now the action file needs a include, what is a nice way for the directory? Is there a variable or constant available? This because admin is in another directory and it is not very nice to use $_SERVER['DOCUMENT_ROOT'] just in case the directories changes. 0 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.