Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 9221603
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 18, 20262026-06-18T03:36:48+00:00 2026-06-18T03:36:48+00:00

I have dabbled in php and read a lot both across Stack Overflow and

  • 0

I have dabbled in php and read a lot both across Stack Overflow and php.net documentation but I fear I have the wrong idea on what goes where my understanding is as follows.

  1. included files a best to be held in the includes folder, these things are like functions specific to files ie: users.php would hold the functions for user related items in this folder

  2. project root would hold a config.php for items like db root and other set specific items

  3. includes drill down like so but only from project root

include('includes/user.php');

this is where my questions are.

  1. do I have a general idea or is their an easier way to layout a complex project

  2. is a function like

    function includes($path, $location){
    return $_SERVER['DOCUMENT_ROOT']. "/" .$path. "/" .$location;
    }

and usage like

require(includes('includes', 'functions.php'));

be a smart way to accomplish includes accorss the project

  1. how do major projects like joomla, phpbb & vbulletin accomplish includes I have looked it over but I am confused totally on how they accomplish this.

  2. anything else that needs to be taken into consideration with project layout and including. im looking at separating group of functions together in their own files

thanks

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-18T03:36:49+00:00Added an answer on June 18, 2026 at 3:36 am

    If you want to create a layout for a complex project that both your and other developers will understand, you should look into using an MVC framework.

    PHP frameworks include:

    • Symfony
    • CakePHP
    • Laravel
    • Code Igniter
    • Yii
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I apologize, I have dabbled with some PHP, but never done anything serious until
I have been a long-term .NET developer, but dabble in Java and PHP development
I'm an old hand at PHP but have only dabbled in wordpress so excuse
I'm a .Net developer but I have a situation where I can't guarantee that
I've never dabbled in making javascript object like this but I think I have
i cam across some older topics about this but since there is a lot
Over the years, I've dabbled in plain JavaScript a little, but have not yet
I've recently been studying TDD, attended a conference and have dabbled in few tests
Have 2 tables in Access 2007, both lists of certain tasks to be accomplished.
I have this dataset of financial transactions, its pretty big but small enough to

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.