Login   Register  
PHP Classes
elePHPant
Icontem

File: example.php

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  Classes of Enrico Reinsdorf  >  A simple ini parser  >  example.php  >  Download  
File: example.php
Role: Example script
Content type: text/plain
Description: Example
Class: A simple ini parser
Read and write .INI configuration files
Author: By
Last change:
Date: 8 years ago
Size: 574 bytes
 

Contents

Class file image Download
<?php
/******************************************************
 * 2006 copyrights by RE-Desgin (cms.re-design.de)   *
 * Author: Enrico Reinsdorf (enrico@cms.re-design.de) *
 * Modified: 2006-01-16                               *
 ******************************************************/

include("class.iniparser.php");

$cfg = new iniParser("config.ini");

$name $cfg->get("Owner","firstname")." ".$cfg->get("Owner","lastname");
echo 
$name;

$tool $cfg->get("Tool");
print_r($tool);
$cfg->setValue("Tool","version""0.9beta");

print_r($cfg);


?>