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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 14, 20262026-06-14T03:26:27+00:00 2026-06-14T03:26:27+00:00

In one of the interview question i get below question How you can restrict

  • 0

In one of the interview question i get below question

“How you can restrict your developers in your custom build framework
to use $_GET variable.”

We have our own custom build framework but in our framework we can not restrict people to use $_GET or $_POST in place of $this->request->get or $this->request->post.

We have method for accessing this variable but people most of the time uses $_GET or $_POST instead of our methods.

Can you please give me answer for that?

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-14T03:26:28+00:00Added an answer on June 14, 2026 at 3:26 am

    In php.ini, remove the G and P characters from the variables_order option.

    Alternatively, if you want them to hate you forever, you could copy the contents of the superglobal, then set it to an instance of a class that throws an exception whenever you try to interact with it:

    class supaglobal implements arrayaccess
    {
        public function _construct(){}
    
        function offsetExists($offset) {
            throw new Exception("Don't use GET, bro");
        }
        function offsetSet($property, $value){
            throw new Exception("Don't use GET, bro");
        }
        function offsetUnset($property) {
            throw new Exception("Don't use GET, bro");
        }
        function offsetGet($property){
            throw new Exception("Don't use GET, bro");
        }
    }
    
    $approvedget = $_GET;
    $_GET = new supaglobal();
    $abcd = $_GET["abcd"]; // throws exception
    $abcd = $approvedget["abcd"]; // A - OK
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

This was the question asked in interview. Can we call one constructor from another
I was asked in an interview to enlighten the ways one can use to
Question from the one interview. Please explain what does this C++ code mean: void
The following question was asked in one of my interview (few years back) What
Here one more basic question asked in MS interview recently class A { public
I was puzzled with one of the question in Microsoft interview which is as
Here is one of my interview question. Given an array of N elements and
One of my friend was asked this question in an interview - You have
Few days back, in an interview one question was asked to me as, Are
In a recent interview one peculiar question has been asked a[]= { 1,2,3,4,5,6,7,8,9,10} When

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.