PHP Classes

File: PHPInfoParserTest.php

Recommend this page to a friend!
  Classes of Stefan Kientzler  >  PHPInfo Compare Online  >  PHPInfoParserTest.php  >  Download  
File: PHPInfoParserTest.php
Role: Example script
Content type: text/plain
Description: Example php-script
Class: PHPInfo Compare Online
Parse and compare PHP configuration versions
Author: By
Last change:
Date: 1 year ago
Size: 627 bytes


Class file image Download
require_once 'lib/Helper/PHPInfoParser.php';


// create object
$oInfo = new PHPInfoParser();

// parse local info and save to XML-File

header('Content-Type: text/xml');
    // compare local phpinfo with saved info-file
    echo $oInfo->reportDiff(PHPInfoParser::REPORT_HTML);
    // compare two saved info-files
    $oInfo->compareFiles('phpinfoCompare1.xml', 'phpinfoCompare2.xml');
    echo $oInfo->reportDiff(PHPInfoParser::REPORT_HTML);

For more information send a message to info at phpclasses dot org.