Server IP : 180.180.241.3 / Your IP : 216.73.216.252 Web Server : Microsoft-IIS/7.5 System : Windows NT NETWORK-NHRC 6.1 build 7601 (Windows Server 2008 R2 Standard Edition Service Pack 1) i586 User : IUSR ( 0) PHP Version : 5.3.28 Disable Function : NONE MySQL : ON | cURL : ON | WGET : OFF | Perl : OFF | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : /AppServ/www/ULIB/_tmp/rootutils/pecl/PEAR/docs/Config/docs/ |
Upload File : |
<?php /** * Config.php example with IniCommented container * This container is for PHP .ini files, when you want * to keep your comments. If you don't use comments, you'd rather * use the IniFile.php container. * @author Bertrand Mansion <bmansion@mamasam.com> * @package Config */ // $Id: IniCommented.php,v 1.4 2005/12/24 02:16:57 aashley Exp $ require_once('Config.php'); $datasrc = '/usr/local/php5/lib/php.ini'; $phpIni = new Config(); $root =& $phpIni->parseConfig($datasrc, 'inicommented'); if (PEAR::isError($root)) { die($root->getMessage()); } // Convert your ini file to a php array config echo '<pre>'.$root->toString('phparray', array('name' => 'php_ini')).'</pre>'; ?>