<?php
 
require_once 'lib/Helper/PHPInfoParser.php';
 
 
use lib\Helper\PHPInfoParser;
 
 
    // create object
 
    $oInfo = new PHPInfoParser();
 
 
    // parse local info and save to XML-File
 
    $oInfo->parse();
 
    $oInfo->save('phpinfo.xml');
 
 
    header('Content-Type: text/xml');
 
    echo $oInfo->saveXML();
 
    
 
    /*
 
    // compare local phpinfo with saved info-file
 
    $oInfo->compareWith('phpinfoFG.xml');
 
    echo $oInfo->reportDiff(PHPInfoParser::REPORT_HTML);
 
    */
 
    
 
    /*
 
    // compare two saved info-files
 
    $oInfo->compareFiles('phpinfoCompare1.xml', 'phpinfoCompare2.xml');
 
    echo $oInfo->reportDiff(PHPInfoParser::REPORT_HTML);
 
    */
 
    
 
 |