Questions tagged [ini]

The INI file format includes text-based initialization information for programs. Its structure is composed of "sections" and "properties".

INI is a file format for saving configurations. They are basic text files with a specified format. An INI file contains key/value pairs, which are divided into sections. For example, an INI file for a mobile phone OS could look like this.

[graphics]
login_screen=mountains
desktop_back=earth_from_space
look_and_feel=classic_layout

[securite]
enable_password = true
;should a password be required to unlock the phone
password_on_unlock = true 
password = AC4d201cxDAc30F5AC4d201cxDAc30F5

A section name is put between square brackets. Each line after the section title contains a key/value pair, separated by an equals sign (=). Lines starting with a semicolon are comments.

The INI file format is not well defined, many implementations handle INI files differently. Some ignore whitespaces in key or value names, while some don't. Some implementations allow for the number sign (#) for comments, while some others don't.

1656 questions
0
votes
2 answers

Including ini files in my project

I'm working on a c++ project using Visual Studio. What I want to do is to include in my project two INI files. I thought that, the fact that we simple add an existing item to the project would be the solution but it doesn't work. The INI thus is…
M.Mellouli
  • 155
  • 1
  • 3
  • 10
0
votes
1 answer

"invalid data source name" with PDO MySQL

It was always working for me but this time it's not. conect.ini conn = "mysql:host=localhost; dbname=%dbname%" user = "root" pass = "%passwd%" conn1 = "mysql:host=%myRealHostAddr%; dbname=%dbname%" user1 = "%user%" pass1 = "%passwd%" pdo class…
Kirill Ivanov
  • 77
  • 1
  • 8
0
votes
1 answer

Reading/Writing INI w/ variable Section Name

Good afternoon folks - I'm working on reading/writing an external file that is created and managed by a 3rd party that uses .INI structured files as its scripting language. I've got a wrapper working pretty well however, the section names are…
George Vaisey
  • 139
  • 1
  • 5
  • 19
0
votes
1 answer

issue compiling simpleini with visual studio 2010 any Idea?

bellow error message when compiling snippets.cpp. this happen when there is a call to LoadFile. I am using simpleIni4.2 > 1>------ Build started: Project: SimpleIni, Configuration: Debug Unicode Win32 ------ > 1>Build started 2013-05-24…
Bayo Alen
  • 341
  • 1
  • 6
  • 13
0
votes
0 answers

Changing Max Upload Size php

I am trying to change the max upload size on my server to allow larger files to be uploaded. I have gone into the php.ini file, and have changed the following settings: upload_max_filesize = 20M post_max_size = 21M This did not seem to make any…
0
votes
1 answer

Set ListBox selecteditems by the ItemText?

I have a Listbox with 100-200 default values and the multiselect-simple mode is enabled. I save the selected text items in a List of string: Private Sub ListBox_Styles_SelectedIndexChanged(sender As Object, e As EventArgs) Handles…
ElektroStudios
  • 19,105
  • 33
  • 200
  • 417
0
votes
1 answer

PHP parse_ini_file

I try to parse something from a file, and can't get it to work.. If i do: $idd = 11; $aInifile = parse_ini_file('status.ini', 'reply'); echo 'test : ' . $aInifile['reply']['11']; Then i get the correct reply. But if i use: $idd = 11; $aInifile =…
KjetilP
  • 11
  • 2
0
votes
3 answers

Bad idea to allow user to upload an ini file for parsing?

I am just brainstorming ways to allow a website user to submit information to a site without using web forms. One idea I have seen suggested is to allow a user to upload an ini file containing the information the user wants to submit in ini format.…
Cbomb
  • 85
  • 1
  • 12
0
votes
1 answer

Using Custom Zend Validator in INI file

I don't have a custom Zend_Form and I just declared all the elements in the ini file. There is no problem with creating the Zend_Form from the ini file, but I am having problem using my own custom validator in my ini file. It always return Not Found…
artsylar
  • 2,648
  • 4
  • 34
  • 51
0
votes
1 answer

AutoHotKey: iniwrite then read of formattime not the same as result of formattime

Here's my code: IniRead, intLastMyDate, c:\temp\test.ini, section1, intLastMyDate, 130101 formattime, intCurrentMyDate, A_Now, yyMMdd ; if the ini has a date stored that is less than today, I will want to ; include code that restarts some…
0
votes
1 answer

PEAR DB, moving from MySQL 4 to 5, .ini file issue?

We're running a custom made CMS that uses PEAR DB class to handle the database. The database is using MySQL 4.0. Our hosting provider is updating to MySQL 5.0 and deactivating all databases using 4.0. I've exported the old DB and made a new 5.0 one…
jimmy
  • 411
  • 3
  • 14
0
votes
0 answers

Reading ini file onCreate event causes 8 second delay

I have some complex software, and i whittled the delay in it to this piece of code: procedure Tform1.FormCreate(Sender: TObject); begin inherited; with TIniFile.Create(Path + '\FileName.INI') do try CheckBox1.Checked…
none
  • 4,669
  • 14
  • 62
  • 102
0
votes
3 answers

running windows command line program from python with ini file argument

Im trying to run a windows command line application from a python script with a ini config file in the command which i suspect isnt passing when its executed. The command is c:\BLScan\blscan.exe test.ini. The ini file is the config file that the…
satraver
  • 15
  • 1
  • 5
0
votes
1 answer

Error when trying to read the .ini file from .nsi script

I have to write a NSIS script for deployment the report on the server.It works fine when I am using localhost. Now I want to send this package to my client but the problem is that I don't know the SERVER IP of the client for this purpose I have…
jiten
  • 5,128
  • 4
  • 44
  • 73
0
votes
1 answer

PHP RAW INI parser fails to parse values correctly

INI data looks like this: [datasources] live.dsn = "mysql:host=localhost;dbname=main" live.user = "root" live.pass = I'm using parse_ini_file(). with INI_SCANNER_RAW live.dsn is parsed incorrectly ("mysql:host) with INI_SCANNER_NORMAL the…
nice ass
  • 16,471
  • 7
  • 50
  • 89
1 2 3
99
100