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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 12, 20262026-06-12T11:48:27+00:00 2026-06-12T11:48:27+00:00

From what I’ve read, it seems that $_SERVER[‘REQUEST_URI’] won’t always return query strings properly,

  • 0

From what I’ve read, it seems that $_SERVER['REQUEST_URI'] won’t always return query strings properly, but does anyone have a good sense of what the success rate is? Will it work in the majority of cases for the average client?

What, if anything, would cause REQUEST_URI to not be populated or not include the query string?

  • 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-12T11:48:29+00:00Added an answer on June 12, 2026 at 11:48 am

    You asked:

    What, if anything, would cause REQUEST_URI to not be populated?

    Answers that I can think of:

    1. The web server provides all the $_SERVER values to PHP, so if the server doesn’t provide them, then they won’t be set. This is highly unlikely with any decent web server, but is possible.

    2. If you run a PHP program from the command line, it won’t have any $_SERVER values. (in case you’re not worried about this, bear in mind that unit tests are typically run from a command line, so it does matter if you’re following best practices and writing unit tests)

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

Sidebar

Related Questions

From the Writing R Extensions Manual , I read that As from R 2.14.0
From experimenting with the r.js optimizer, it seems that there is no way for
From time to time I run into the issue that Grails integration tests the
From the paper of bigtable. bigtable I read this: Each METADATA row stores approximately
From your experience, are there any security measures that one should undertake on a
From epoll's man page: epoll is a variant of poll(2) that can be used
From the web app, calls are made to a web service that in turn
From here: https://stackoverflow.com/a/2485177/462608 For thread-safe accesses to shared data, we need a guarantee that
From what I've read so far, Windows Phone 7 does not support a Sql
From my SQLite database i pulled all of the entries that have Liquor in

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.