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

  • Home
  • SEARCH
  • 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 3333462
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 17, 20262026-05-17T23:47:57+00:00 2026-05-17T23:47:57+00:00

So far in my career as PHP programmer, I have stored my functions statically

  • 0

So far in my career as PHP programmer, I have stored my functions statically in class separated PHP files by topic (such as “database”, “htmlfunctions” etc). I recently had the idea of storing all my PHP functions in separate files and executing them by calling the include function in the appropriate spot, or including them on a need-to-use basis.
That would have the advantage of ridding me of the need to include a bunch of references and keeping track of which functions are in which files. In addition, I would be able to call functions from the address bar.
Parameters would be redundant since (from what I know) the include function copy/pastes file content directly and un-compiled into it’s place. The included files would then be able to use local and global variables.

What are your thoughts and comments on this, experts?

  • 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-17T23:47:58+00:00Added an answer on May 17, 2026 at 11:47 pm

    My thought is, that you might want to have a look into OOP and the PHP class autoloader features. Using global variables in your application without any level of encapsulation doesn’t sound like a good practice anymore.

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

Sidebar

Related Questions

So far this is what I have to work with: <div class=toplist> <div class=toplist_left></div>
As far as I know, foreign keys (FK) are used to aid the programmer
So far I have encountered adjacency list, nested sets and nested intervals as models
I've managed to get through my C++ game programming career so far virtually never
The majority of my questions I've asked here so far on StackOverflow have been
As far as I understand it, there is no way in Scala to have
So far, I'm using $(this).attr('class'); But I worry about compatibility because I know some
So far I have this: hist <- ggplot(Mydf, aes(x=Mydf$Avg.CPC)) breaks <- c(min(Mydf$Avg.CPC), median(Mydf$Avg.CPC), max(Mydf$Avg.CPC))
So far I have ^[a-z0-9]+[a-z0-9\x20]+[a-z0-9]+$ Which matches all criteria except not matching double spaces.
As far as I know, Flash has to pass info off to another external

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.