; sample-config.ini: a commented INI configuration file. ; Free sample from 99helpers.com/file-types/ini ; INI has no single standard. This file sticks to the parts that almost ; every parser agrees on. The numbered comments mark the parts explained ; on that page. ; 1. Comments: a line starting with ; is a comment in every dialect. ; Many parsers also accept #, but PHP's does not, so this file avoids it. ; 2. A section header: a name in square brackets. Keys below it belong to it. [app] ; 3. A key, an equals sign and a value. Spaces around = are trimmed. name = Sample web app version = 2.10 ; 4. Every value is text. The program decides that this means "no". debug = false port = 8080 ; 5. An empty value owner = ; 6. A new section starts a new group of keys [database] host = db.example.internal port = 5432 ; 7. Values may contain spaces and most punctuation without quotes label = Main database: primary, read/write [paths] ; 8. Backslashes are ordinary characters in most dialects (not in Git's) data_dir = C:\ProgramData\SampleApp log_file = /var/log/sample-app.log ; 9. Lists have no standard syntax: a comma-separated value is common [features] languages = en, nl, fr allowed_hosts = example.com, www.example.com ; 10. Spaces and dots in names work in most parsers (not in Git's) [mail server] smtp.host = mail.example.internal smtp.port = 587