note 37788 added to function.parse-ini-file

From: Date: Thu, 27 Nov 2003 04:20:07 +0000
Subject: note 37788 added to function.parse-ini-file
Groups: php.notes 
Request: Send a blank email to php-notes+get-61016@lists.php.net to get a copy of this message
--------------------[ ini file ]------------------------ [sendmail_conf] sendmail_bin=/sbin/sendmail sendmail_option=-t [mail list] mailto=simz@naver.com ---------------------------------------------------- --------------------[read_config]-------------------------- function read_config() { $lines = file(CONFIG_FILE); $option_arr = parse_ini_file(CONFIG_FILE,TRUE); while( list($k,$v) = each($option_arr) ){ $$k = $v; while( list($p,$q) = each($option_arr[$k]) ){ $$p=$q; define($p,$q); } } printf("sendmail_bin = %s\n",sendmail_bin); printf("sendmail_option = %s\n",sendmail_option); printf("mailto = %s\n",mailto); } ----------------------------------------------------------- ---- Manual Page -- http://www.php.net/manual/en/function.parse-ini-file.php Edit -- http://master.php.net/manage/user-notes.php?action=edit+37788 Delete -- http://master.php.net/manage/user-notes.php?action=delete+37788&report=yes Reject -- http://master.php.net/manage/user-notes.php?action=reject+37788&report=yes Search -- http://master.php.net/manage/user-notes.php

« previous php.notes (#61016) next »