joomla - php script to read from params.ini file -
i run 2 applications on site , want use same template both. joomla site stores it's template config in params.ini file in following manner:
sidebara_width=150 sidebarb_width=300 mainbody_width=500
each parameter in 1 line no commas or semicolon after that. want use same values other template. <div id="sidebars" style="<?php echo $sidebara_width ?>.px">
i need small php script can read these values params.ini file , assign value of 150
variable called $sidebara_width,
assign value of 300
variable called $sidebarb_width
, on.
kindly help
there function called parse_ini_file
you use this
$ini_array = parse_ini_file('path file'); $sidebara_width = $ini_array['sidebara_width'] $sidebarb_width = $ini_array['sidebarb_width']
and on
regards
Comments
Post a Comment