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 1025135
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 16, 20262026-05-16T11:52:58+00:00 2026-05-16T11:52:58+00:00

I ask because it seems like the only thing ever called in a proper

  • 0

I ask because it seems like the only thing ever called in a proper app index.php file is the require_once bootstrap file. I’m assuming this adds a layer of security but if not, this pattern seems pointless. Why not just use the index.php file as the bootstrap? Any opinions, cautions, thoughts etc. are appreciated!

(By the way, my htaccess file is routing all requests to the index.php file…)

  • 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-05-16T11:52:58+00:00Added an answer on May 16, 2026 at 11:52 am

    There is no inherent security difference, no matter whether you have your bootstrapoing process in the index file or a separate one.

    Having a separate file is usually due to organization concerns (e.g. to have a file that can be included from elsewhere to import your app’s functions, or to put all the tasks in properly named files, or to make it especially easy to add custom extensions to the boot process).

    However, configuration files containing sensitive information – sometimes, more rarely, even all PHP files at all except for the index file – will be placed outside the web root where possible. That will make a security difference in that PHP files can not be accessed from outside in case of an accidental server misconfiguration.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Just like Carl's question over here I would like to ask you (because I
I ask because I am sending a byte stream from a C process to
Are there any tools for just browsing SQL Server? I ask because sometimes SSMS
I ask this because at work I am supposed to develop a web-application that
And why don't they change it? Edit: The reason ask is because I'm new
In postgis, is the ST_GeomFromText call very expensive? I ask mostly because I have
I ask this, because tomorrow is my first meeting with the client, in which
need ask you about some help. I have web app running in Net 2.0.
This question has been brought up many times, but I'd like to ask it
I ask this question in anticipation as part of a project. I have experience

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.