Jump to content

File includes in custom files


Recommended Posts

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.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use & Guidelines and understand your posts will initially be pre-moderated