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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T21:56:20+00:00 2026-05-27T21:56:20+00:00

From PHP, is there a cross-platform, cross-web server way of determining if PATH_INFO is

  • 0

From PHP, is there a cross-platform, cross-web server way of determining if PATH_INFO is enabled on the server you are running on?

It appears $_SERVER[‘PATH_INFO’] is only populated if there are extra path segments after the script, so you can’t reliably tell if PATH_INFO is enabled if the request is for /index.php, for example.

  • 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-27T21:56:21+00:00Added an answer on May 27, 2026 at 9:56 pm

    I don’t think there is a defined way to get hold of an Apache configuration value like that.

    One idea that comes to mind is making a request using file_get_contents() to

    http://current_site_domain/check.php/test
    

    check.php would output $_SERVER['PATH_INFO'].

    If the result of the request is “test”, PATH_INFO works.

    Of course, this might fail because opening URLs is disabled, because you don’t know the local domain, because there’s a firewall in place, etc. etc.

    Another way that is less prone to failing is using an iframe:

    <iframe src="/check.php/It%20works!"></iframe>
    

    If you see “it works” inside the ifrane, PATH_INFO works. Possibly useful for an installation procedure.

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

Sidebar

Related Questions

Is there anyway to use atrm command to remove queue job from PHP web
Is there any way to get a certain thumbnail generated by PHP from a
Is there a way to generate a PHP Soap Client from a WSDL file?
I am exporting data from php page to word,, there i get 'n' number
I'm interested if there is any function like array_map or array_walk from php. Don't
I come from a php background and in php, there is an array_size() function
There is my site For SEO I have removed the .php extension from all
Is there a native PHP function for rejecting invalid $_POST data from simple text
I've downloaded memcache.php version 3.0.6 from there and out of the box (after defining
I am using simple PHP query to fetch rows from the database, there are

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.