How does php modify the path of ini files
This article introduces php how to modify ini file path, the content is very detailed, interested friends can refer to reference, hope to help you.
php Method to modify ini file path: 1. Find "environment variable";2. Add a value "d:\www\php54";3. Create a new environment variable and set "variable value" to "d:\www\php54";4. Restart the computer.
Operating environment: Windows 7 system, PHP 5.4 version, DELL G3 computer
PHP How to modify ini file path?
How to modify php.ini file location
Maybe you don't want to copy the PHP.ini file to the Windows folder of the system disk or change it and don't know how to change it. Then look below:
First, let's talk about the order in which the windows system looks for files: the system will first look in the windows directory, windows\system32 directory, and then look in the directory specified by the environment variable PATH.
Tip: It is best not to have spaces in the path when naming folders, so as not to cause problems.
How to modify php.ini location:
Windows environment variables need to be modified:
1: Computer-> Properties-> Advanced System Settings-> Environment Variables
2: Add a value d:\www\php54 to the PATH environment variable of the system (separated from the previous value by;).
3: Create a new environment variable "variable name" as "PHPRC" and "variable value" as d:\www\php54 (directory where php.ini file is located).
4: Restart the computer.
When printing php information in a browser, look at the following:
Configuration File (php.ini) Path
d:\www\php54\php.ini
About php how to modify ini file path to share here, I hope the above content can be of some help to everyone, you can learn more knowledge. If you think the article is good, you can share it so that more people can see it.