Login   Register  
PHP Classes
elePHPant
Icontem

File: index.php

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  Classes of Kenan Savas  >  ini_manager  >  index.php  >  Download  
File: index.php
Role: Example script
Content type: text/plain
Description: index
Class: ini_manager
Manipulate configuration files in the ini format
Author: By
Last change:
Date: 2009-03-22 07:51
Size: 1,099 bytes
 

Contents

Class file image Download
<?php

require_once( "ini_fn.php" );

//set_params_ini( "One", "opt2", "how come are you there?", "test.ini" ) ;
//echo get_params_ini( "One", "opt2", "test.ini" ) ;

//echo get_params_ini( "Fourth", "opt16", "test.ini" ) ;

/*
delete_entry_ini("Three", "opt10", "test2.ini");
echo "the record has been removed.";
*/

/*
delete_key("Three", "test2.ini");
echo "the record (s) has been added.";
*/

/*
delete_all_keys("test2.ini");
echo "the record (s) has been added.";
*/


show_ini("test2.ini");


/*
if ( find_entry( "test2.ini", "Three", "opt6" ) )
 echo "the entry record has been found.";
else
 echo "the entry record has not been found.";
 */

/*
if ( find_key( "test2.ini", "Three" ) )
 echo "the entry record has been found.";
else
 echo "the entry record has not been found.";
*/

/*
add_entry( "test2.ini", "Three", "SubSub", "SupSup" );
echo "the record has been added.";
*/

/*
$list01= list_key_values( "test2.ini" ) ; 
print_r( $list01 );
*/

/*
$list02= list_entry_values( "test2.ini" , "Two" ) ; 
print_r( $list02 );
*/

?>