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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 3, 20262026-06-03T01:45:14+00:00 2026-06-03T01:45:14+00:00

Reading over the documentation about include_once it basically says that the file in question

  • 0

Reading over the documentation about include_once it basically says that the file in question won’t be re-included if it’s included already.

Can I equate this in my head as a static instance of the script, or will this lead me to trouble down the road?

EDIT

Not looking for a tutorial on include_once, I understand it quite well. Would like to know if I can conceptually attach the properties and characteristics of a static member, to this idea.

EDIT 2

Would the downvoters care to explain? It’s a conceptual question, with a clear answer.

  • 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-03T01:45:16+00:00Added an answer on June 3, 2026 at 1:45 am

    I’m not sure how the actual function works, but the best way to think about it is:

    “If this file has been included/required earlier in this stream, no need to include/require it again.”

    The point is to avoid including a file that “redefines” a class or function because it was already defined in that same file included earlier.

    The important thing to keep in mind is the idea of the script (and any included scripts along the way) as having a start and a finish. Any calls to include_once checks if that file has already been included since the start of the whole script. If it has, it doesn’t bother to include it again, it just goes off of the originally included file.

    Once the script is finished (no work left to be done, stream is closed, interrupted, aborted, etc), then re-starting the process treats the first include/include_once of a file as the first include, since it’s the first time it’s been included since the new running of the script. In that case, your back to square one, with all values being set back to default or unset.

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

Sidebar

Related Questions

I've been reading over the internet about a partial method that I can use
Say I want to have a server that can accept 2GB file over network,
I was reading over the documentation for query hints: http://msdn.microsoft.com/en-us/library/ms181714(SQL.90).aspx And noticed this: FAST
hello im new to python and have been reading over the documentation and am
Reading over the responses to this question Disadvantages of Test Driven Development? I got
I was reading over this question and wondered if the accepted answer might also
I've been reading over the perl doc, but I can't quite get my head
An asynchronous question: I've been reading over the internet LOTS of articles for and
I've been reading over the moustache documentation, and it looks cool: https://github.com/defunkt/mustache There is
Over the past year I have heard alot about Velocity and NVelocity. Reading their

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.