Example #1
0
<?php

require_once "ini.php";
$iniMANAGER = new ini_manager();
$cuenta = $iniMANAGER->get_entry("test.ini", $_SERVER['REMOTE_ADDR'], "cuenta");
$iniMANAGER->add_entry("test.ini", $_SERVER['REMOTE_ADDR'], "cuenta", $cuenta += 1);
echo "Nos has visitado " . $iniMANAGER->get_entry("test.ini", $_SERVER['REMOTE_ADDR'], "cuenta") . " veces!";
Example #2
0
function get_params_ini($section, $entry, $ini_path)
{
    $iniMANAGER = new ini_manager();
    $entry_val = $iniMANAGER->get_entry($ini_path, $section, $entry);
    return special_chars_out($entry_val);
}