In our program, there are always some configuration information needs to be saved, in order to complete the function of the program, the easiest way is to write this information in the INI file, the program is initialized to read again. The specific application is as follows:
I. Write information to the. ini file.
1. The WINAPI function prototype used is:
BOOL WritePrivateProfileString (
LPCTSTR Lpapp
We first in the new project, right click Select "Add" and select "Class", add a class, named Operini.
We introduce the WINDOWSAPI function in the class, GetPrivateProfileString and writeprivateprofilestring These two functions can read and write to the INI file.
After introducing the above two functions, we can define the methods of reading, writing, deleting keys, and deleting values.
4 through the above steps, t
PHP.ini or Php3.ini is the set file that PHP reads when it starts. The storage path for this file is
/usr/local/lib/. In the PHP 3.x version of the profile is Php3.ini, and in the PHP 4.x version instead
Ini. If PHP is installed as a server module, it is read when the Web server starts execution and then
No longer read, so change settings to restart the Web serve
The C + + library provides ready-to-read APIs for. ini files:getprivateprofileint and getprivateprofilestring, specifically online.
My call is as follows:
int port = getprivateprofileint (L "Port", L "Port", 5555, L ". \\test.ini");
The contents of the Test.ini file are as follows:
[PORT]port=8888
But Port is always 5555, not 8888 in the file.I thought it might be a slash to write the reverse of the problem, there may be a slash only write a prob
four functions for reading and writing INI files' FileName Sourcedb.ini file
Private Declare Function getprivateprofilestring Lib "kernel32" Alias
"Getprivateprofilestringa" (ByVal lpapplicationname as String, ByVal lpkeyname as any, ByVal
Lpdefault As String, ByVal lpreturnedstring as String, ByVal nSize as Long, ByVal
lpFileName as String) as Long
Private Declare Function writeprivateprofilestring Lib "kernel32" Alias
"Writeprivateprofilestringa" (B
Although Microsoft has already suggested replacing the INI file with the Registry in windows, the INI file is still useful in practical applications, especially in the popularity of green software, more and more programs save some configuration information to the INI file.
An INI file is a text file consisting of sever
PHP backdoor composed of the. user. ini file0x00 background
This is an estimate that many people think it is a bad street thing:
PHP backdoor composed of. htaccess files
Let me create a new one:. user. ini. It is more widely used than. htaccess. This method can be used for php running with fastcgi, whether it is nginx/apache/IIS. My nginx servers are all fpm/fastcgi, and all my IIS php5.3 and above use fas
Set (. ini) when there are too many rows.
You can use these two methods to save them.Joint Venture,When there is a lack of legal support, there is a lack of legal support.Please wait, set (. ini) Please try again later, so that many users may think twice about it.
When there is no such problem, you can save the following parameters: VB/VBA when there is no such problem ,.
The INI file seems to have come out of the stage under the powerful XML attack, but in some simple settings and storage, using the INI file is still a good choice.For example, to save the song list, username, and password, the world browser also seems to use INI to save a lot of information. Sometimes we do not want ini
---- INI files play an important role in system configuration and saving and setting application parameters. Therefore, a Visual Programmer, for example, VB, Vc, VFP, and Delphi all provide methods to read and write INI files. Among them, operations on INI files in Delphi are the most concise, because delphi3 provides a Tinifile class, this allows us to process
Reproduced in Baidu space: http://hi.baidu.com/graspa/blog/item/d17d928b4ec949d0fc1f1007.html/cmtid/ccf49bd4288f080fa08bb74e
I. It is necessary to understand the structure of the INI file:
; Comment
[Section name]
Keyword = Value
...
---- The INI file allows multiple sections, and each section allows multiple keywords. "=" is followed by the value of this keyword.
---- There are three types of values: Strin
INI settings
Like the super global variables and persistent constants you see in the previous chapter, the php.ini value must be defined in the extended Minit code block. However, unlike other features, the INI option is defined only by a simple start/stop line.
Php_minit_function (sample4)
{
register_ini_entries ();
return SUCCESS;
}
Php_mshutdown_function (sample4)
{
unregiste
Extracted from: http://www.iwms.net/n1661c13.aspx
An INI file is a file with the extension "ini. In Windows, there are many INI files. The most important ones are system. ini, system32.ini, and win. ini ". This file mainly stores
Modify php. ini to block the error message. this is because the error display is disabled in php. ini and the error is written as a file. this is a result set by humans, and display_errorson is enough. However, the error is not displayed. we recommend that you enable it during debugging and disable it when providing services. Provide you with some information: display_errorsOnphp displays the error message
Today, let's talk about some interesting content in the PHP. ini file.The PHP. ini file is believed to be familiar to every PHP enthusiast. It was named PHP3.INI in the previous PHP version PHP3.0. Open it with NOTEPAD. Files are usually in the Windows directory of the operating system. As you can see, PHP. the INI fil
Create | Dynamic in C # programming, in some cases we might be able to use it. INI file. For example, create "Dynamic Help" for an input interface:
We set a label below the input interface, and when the user moves the cursor to each textbox or other input, the label text is automatically transformed into some help information for the entry when you select the box.
INI
Find the path of the php configuration file php. ini. Generally, php. ini is located in the following Directory: Copy the code: etc or usrlocallib. If you still cannot find php. ini or find the php. ini modification, it will not take effect (in fact, the location of php. ini
C ++ INI File
INI files are mostly used for storage.Program. For example, record the name of the database connecting the program, the name of the last user login, and the user registration information.
I. ini file format
[Section1 name] keyname1=Value1keyname2=Value2...... [section2 name] keyname1=Value1keyname2= Value2
Section: node name; keyname:
Because I have always wanted to develop a software, so I am working hard! The structure of the INI file is a text file that is arranged according to the characteristics. Each INI file is very similar and consists of several sections. Under each title with parentheses, there are several keywords starting with a single word (keyword) and an equal sign, the right side of the equal sign is the value correspondi
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.