PHP Classes

INI Files Handler: Read and manipulate INI files configuration values

Recommend this page to a friend!
  Info   View files Example   View files View files (2)   DownloadInstall with Composer Download .zip   Reputation   Support forum   Blog    
Ratings Unique User Downloads Download Rankings
Not enough user ratingsTotal: 515 This week: 1All time: 5,735 This week: 74Up
Version License PHP version Categories
ini-files-handler 1.0.0GNU General Publi...3Files and Folders, Configuration


This class can read and manipulate INI files configuration values.

It can parse an INI file or create a new file if it does not exist yet.

The class can get, set and delete configuration values in the INI file.

The changed configuration can be saved back to the INI file.

Picture of Josť Silva, Jr.
  Performance   Level  
Name: Josť Silva, Jr. <contact>
Classes: 1 package by
Country: Brazil Brazil
Age: 50
All time rank: 3238244 in Brazil Brazil
Week rank: 89 Up4 in Brazil Brazil Up



require_once 'classe.ini.php';

$ini = new ini('test.ini');
$ini->set('GROUP_A', 'VAR_X', 'MY_VALUE');
$ini->set('GROUP_A', 'VAR_Y', 'MY_OTHER_VALUE');
$ini->get('GROUP_A', 'VAR_X') != false)
$x = $ini->get('GROUP_A', 'VAR_X');
$ini->del('GROUP_A', 'VAR_X');
$ini->set('GROUP_B', 'VAR_X', 'OTHER_VALUE');
$ini->set('GROUP_B', 'VAR_Y', 'ANOTHER_VALUE');

'$x = ' . $x;
'<script>"test.ini", "_blank"); </script>';

  Files folder image Files  
File Role Description
Plain text file classe.ini.php Class INI file handler Class
Accessible without login Plain text file ini_test.txt Example Usage exemple

 Version Control Unique User Downloads Download Rankings  
This week:1
All time:5,735
This week:74Up