PHP Configuration Issues

Source: Internet
Author: User
I use the phpinfo () function to view the PHP configuration environment, the directory hints about the configuration file (php.ini) are as follows:

Configuration File (php.ini) Path C:\WINDOWS
Loaded Configuration File C:\\php\php.ini
May I ask you, I do not quite understand why the path of the configuration file is C:\Windows, but the configuration file loaded is the configuration file in the C:\PHP\ directory, do not need to set the configuration file path, default in the PHP program directory to find it?


Reply to discussion (solution)

Priority question, see if Windows has, can't find the path in the enrolled configuration file

This is not a problem, the default C:\Windows, but there is no php.ini configuration file under Windows, then retrieve its own file directory, found in its own directory has a php.ini configuration file, and then loaded it.
If you feel this is not good, you can cut directly, and then paste into the C:\windows inside, so load is C:\windows\php,ini

Personally, I think we should put the php.ini file
Configuration File (php.ini) Path C:\WINDOWS variable Replace

Personally, I think we should put the php.ini file
Configuration File (php.ini) Path C:\WINDOWS variable Replace


I think it's okay to ignore it, it's now loaded correctly, right? It's no use studying this.

Copy the php.ini to Windows

For Windows systems
Configuration File (php.ini) Path C:\WINDOWS
Represents the location where the php.ini is loaded by default

Loaded Configuration File C:\PHP\php.ini
Represents the location where the php.ini is actually loaded
Since it is not the default location, it is of course necessary to specify the

  • 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.