Why is the PATH value of the environment variable output by phpinfo () different from that set on my local machine ???

Source: Internet
Author: User
Why is the PATH value of the environment variable output by phpinfo () different from that set on my local machine ??? My local settings: C: \ Program Files \ DBank \ ClickUp; D: \ MyEnv \ Apache2 \ bin; D: \ MyEnv \ php5;

PATH value of the environment variable output by phpinfo:





Why? How can this problem be solved ?? Thank you!


Reply to discussion (solution)

Your two white ones are mysql5, which has something to do with your local path?

Your two white ones are mysql5, which has something to do with your local path?
Yes, both of them are mysql5 installation paths. I have not set the mysql PATH in the environment variable PATH ~

Reference the reply on the first floor:

Your two white ones are mysql5, which has something to do with your local path?

Yes, both of them are mysql5 installation paths. I have not set the mysql PATH in the environment variable PATH ~
This is a system variable. After mysql is installed, it should be automatically added to the system variable. in normal cases, manual intervention is not required.

Search for a full list to see how many mysql.exe

The two moderators misunderstood what I meant. I mean, the values obtained from $ _ SERVER ['path'] and $ _ ENV ['path, shouldn't it be the PATH value of the environment variable set by my local machine (server? Why is the obtained PATH value different from that of my local machine ??

The values of the two arrays are taken in different ways.
In theory, it should be taken from CGI environment variables, but apache in the window can be taken from the registry.

It is very likely that a mysql service has been started and a conflict occurs when another mysql service is started.

It is indeed the path environment variable of window. Why?

It is indeed the path environment variable of window. Why?
My local environment variable PATH is set to C: \ Program Files \ DBank \ ClickUp; D: \ MyEnv \ Apache2 \ bin; D: \ MyEnv \ php5;

But the native PATH printed with phpinfo () is not this ()

In fact, I just want to know whether "_ SERVER ['path']" in the output of phpinfo () is the PATH value of the environment variable on the SERVER.

Same problem encountered

Have you solved this problem?

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.