Why are there two php. ini paths on the page displayed by phpinfo? Solution

Source: Internet
Author: User
Why are there two php. ini paths on the page displayed by phpinfo ??? Which of the two decides the location of the php. ini file? PHPcodeConfigurationFile (php. ini) PathC: \ WINDOWSLoadedConf phpinfo () shows why there are two php. ini paths ???
Which of the two decides the location of the php. ini file?
PHP code
  Configuration File (php.ini) Path    C:\WINDOWS  Loaded Configuration File            D:\MyEnv\php5\php.ini  


When I delete both php. ini files in the two paths, it is displayed:
PHP code
  Configuration File (php.ini) Path    C:\WINDOWS  Loaded Configuration File            (none)

Then use the phpinfo () function to find that the output is still normal. what is the problem? Isn't it able to read the configuration file? Why not report an error?

Thank you !!!


------ Solution --------------------
When running PHP in WINDOWS, find the configuration file in C: \ WINDOWS. If no configuration file is found, find it in the PHP installation directory, if none of the two directories are found, use the default PHP configuration environment. Therefore, you only need to have at least one appropriate PHP configuration file in the C: \ WINDOWS or PHP installation directory.
------ Solution --------------------
Do not need to be shown if it already exists?
I don't know. I haven't tested 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.