Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

How does php modify the path of ini files

2025-04-01 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >

Share

Shulou(Shulou.com)06/03 Report--

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.

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Development

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report