Home > Common Problem > body text

What does ini mean? What is the ini file format?

云罗郡主
Release: 2020-10-12 15:58:44
Original
48330 people have browsed it

ini is the abbreviation of Initialization File, which means "configuration file; initialization file;" and is the suffix name of the initialization setting file; the ini file is the storage format used by the system configuration files of Windows and manages all aspects of Windows. item configuration.

What does ini mean? What is the ini file format?

1: What does ini mean?

ini is the suffix name of the initialization setting file, and the ini file is the Initialization File The abbreviation of is the storage format used by Windows system configuration files. It manages various configurations of Windows. Generally, users can use the various graphical management interfaces provided by Windows to achieve the same configuration. [Recommended tutorial: Website host video tutorial]

2: File extension

configuration file. ini

Please note: What we are discussing is the configuration file in the project, which is common to the entire project. So it needs to have a file name used by the project, and its suffix is. ini. For example: port configuration. ini

3: Format

The INI file consists of sections, keys, and values.

  • section[section]

  • Parameter (key=value) name=value

  • Annotation Use a semicolon (;). The text after the semicolon until the end of the line is a comment.

Four: Case

; exp ini file
[port]
portname=COM4
port=4
Copy after login

Five: Function

.ini## Files such as #, .inc usually put some constants or database link statements, etc., and then include them in the required pages. There is no difference from directly naming them as asp. But for the sake of security, it is best not to use these suffixes, because when you know the file name, you can see all the contents when you enter the address of the file in the browser.

The above is the detailed content of What does ini mean? What is the ini file format?. For more information, please follow other related articles on the PHP Chinese website!

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
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!