Phpinfo () Why are there two paths to php.ini on the page shown? Solution Ideas

Source: Internet
Author: User
Phpinfo () Why are there two paths about php.ini in the page shown???
Which of these two determine the location of the php.ini file?
PHP Code
  
   Configuration file (php.ini) Path    C:\WINDOWS  Loaded configuration file            D:\MyEnv\php5\php.ini  


I removed the php.ini from the two paths, and it was shown as:
PHP Code
  
   Configuration file (php.ini) Path    C:\WINDOWS  Loaded Configuration file            (none)

And then using the Phpinfo () function to find out what's going on with the normal output, what's going on? Is it not already read from the configuration file? Why not error?

Thank you!!!


------Solution--------------------
The PHP runtime in the Windows environment first looked for the configuration file in the C:\WINDOWS, could not find it in the PHP installation directory to find, two directories can not find to use PHP default configuration environment. So you just have to have at least one PHP configuration file in the C:\WINDOWS or PHP installation directory.
------Solution--------------------
There's no need to show it, right?
I don't know, not tested.
  • 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.