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 Marcelo Costales  >  Read Ini Files  >  example.php  >  Download  
File: example.php
Role: Example script
Content type: text/plain
Description: example to read ini files
Class: Read Ini Files
Parse ini files and extract key values
Author: By
Last change: the instr user function is no needed
Date: 2004-06-02 10:14
Size: 661 bytes
 

Contents

Class file image Download
<?

/*
**************************************************************************Usage: $obj = new readini;
       $var = $obj->ReadIniValue (file_name, key_name, var_name);
***************************************************************************/

include "readini.class.php";

    
$ini = new readini;
    print 
$ini->ReadIniValue("test.ini""company""companyname");
    print 
"<br>";
    print 
$ini->ReadIniValue("test.ini""company""cityname");
    print 
"<br>";
    print 
$ini->ReadIniValue("test.ini""country""countryname");
    print 
"<br>";
    print 
$ini->ReadIniValue("test.ini""amount""cash");
    print 
"<br>";

?>