PHP Classes

File: example.php

Recommend this page to a friend!
  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: 18 years ago
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>";

?>

For more information send a message to info at phpclasses dot org.