phpini loading location

WBOY
Release: 2016-08-08 09:20:27
Original
1046 people have browsed it

The php.ini file cannot be found. I loaded it under WINDOS, but it could not be found. Then I forced -c to search and it was OK. I was thinking about why the ini file under window was loaded. 1. There may be a default path, 2. There may be no path and it is loaded by default.

Problem solution: http://php.net/manual/zh/configuration.file.php, which has a detailed introduction to the reference problem of php.ini. Find the registry, use Run-》regedit, and open the registration table hkey-local-machine-software-php, but php in my computer is installed in the PHPstudy integrated environment, so it is not in the registry, so the search path of ini is based on the priority

  • Windows directory ( C:windows or C:winnt), or --with-config-file-path The location specified by the compile-time option.
  • There is also a location to load the configuration file: it should be the php.ini file under the php used, but it cannot be found, and the php.ini file in D:\360 Download is automatically loaded. Rename the loaded file to solve the problem

    Copyright statement: This article is an original article by the blogger and may not be reproduced without the blogger's permission.

    The above introduces the loading location of phpini, including the relevant content. I hope it will be helpful to friends who are interested in PHP tutorials.

    Related labels:
    source:php.cn
    Statement of this Website
    The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
    Popular Tutorials
    More>
    Latest Downloads
    More>
    Web Effects
    Website Source Code
    Website Materials
    Front End Template