QQ group inside the new upload a file Ext_inifiles_ext_lib_demo.rar, is the ext_lib of the demo source code, implemented a Inifile class in the script call.
1. How to use Ext_lib
Used in scripts:
Uses inifiles;
var ini:inifile;
Begin
Str_path: = Server.MapPath ('/config.ini ');
INI: = Open_inifile (Pansichar (Str_path));
Ini.writestring (' System ', ' xxxx ', ' xxx ');
Str_b: = ini.readstring (' System ', ' xxxx ', ');
Write (Str_b);
INI: = nil; You can also not call this, the script will automatically release the object.
End.
---------------------------------------------------
2. How to enable Ext_lib
After compiling the DLL, copy the DLL into the pwp\ext_lib\ below.
Modify the [Ext_lib] section inside the Pwp\config.ini file,
Add Ext_inifiles=1, then restart Ux_pax, and you can see the load ext_lib:ext_inifiles ... ok.
The above describes the PWP extension library interface and source code, EXT_LIB_SRC, including the aspects of the content, I hope that the PHP tutorial interested in a friend helpful.