Apache Undefined Index:path_info, how to solve

Source: Internet
Author: User
Apache Undefined Index:path_info
Notice:undefined Index:path_info in

Is that what this is all about? I searched the internet and found no solution.

The page is like this $_server[' Path_info ']

How to get PHP under Apache to support $_server[' Path_info '


What settings do I need to change?

------Solution--------------------
Page Header plus: error_reporting (E_all & ~e_notice);

------Solution--------------------
Apache, IIS are supported by default
But you're going to have to use it.
Like what
Http://localhost/test.php/a/b/c

As long as the test.php exists, and does not error. $_server[' Path_info ' in test.php.
------Solution--------------------
The manual says:
' Path_info '
Contains the path information provided by the client, followed by the real script name and before the query string, if present. For example, if the current script is accessed via URL Http://www.example.com/php/path_info.php/some/stuff?foo=bar, then $_server[' Path_info ' will contain/some/ Stuff

The URL you visited is incorrect, so there is no path_info, there is a notice error, but you can block it.
  • Contact Us

    The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

    If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

    A Free Trial That Lets You Build Big!

    Start building with 50+ products and up to 12 months usage for Elastic Compute Service

    • Sales Support

      1 on 1 presale consultation

    • After-Sales Support

      24/7 Technical Support 6 Free Tickets per Quarter Faster Response

    • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.