ApacheUndefinedindex: PATH_INFO. how can this problem be solved?

Source: Internet
Author: User
ApacheUndefinedindex: PATH_INFONotice: Undefinedindex: PATH_INFOin & nbsp; is this the case? I searched for a solution on the internet. the solution is as follows: $ _ SERVER ['path _ info'] how to make PHP under apache support $ _ SERVER ['path apache Undefined index: PATH_INFO
Notice: Undefined index: PATH_INFO in

Is that the case? I searched the internet and couldn't find a solution.

The $ _ SERVER ['path _ info']

How to make PHP under apache support $ _ SERVER ['path _ info']


What settings do I need to change?

------ Solution --------------------
Add error_reporting (E_ALL &~ E_NOTICE );

------ Solution --------------------
Apache and iis are supported by default.
But you only need to use it.
For example
Http: // localhost/test. php/a/B/c

As long as test. php exists, no error is reported. In test. php, $ _ SERVER ['path _ info'] will be available.
------ Solution --------------------
The manual says:
'Path _ info'
Contains the path information provided by the client following the real script name and before the query statement (query string), if any. For example, if the current script is through a URL http://www.example.com/php/path_info.php/some/stuff? If foo = bar is accessed, $ _ SERVER ['path _ info'] will contain/some/stuff.

The url you accessed is incorrect, so there is no path_info and a notice error occurs, 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.