1<!-- This is an example page calling the phpsecinfo() function -->
2
3<?php require_once('PhpSecInfo/PhpSecInfo.php'); ?>
4<?php phpsecinfo(); ?>
5
6<?php
7/**
8 * If you want to capture output and/or customize the look and feel,
9 * you need to do slightly more work.
10 *
11 * Example:
12 * <code>
13 * require_once('PhpSecInfo/PhpSecInfo.php');
14 * // instantiate the class
15 * $psi = new PhpSecInfo();
16 *
17 * // load and run all tests
18 * $psi->loadAndRun();
19 *
20 * // grab the results as a multidimensional array
21 * $results = $psi->getResultsAsArray();
22 * echo "<pre>"; echo print_r($results, true); echo "</pre>";
23 *
24 * // grab the standard results output as a string
25 * $html = $psi->getOutput();
26 *
27 * // send it to the browser
28 * echo $html;
29 * </code>
30 */
31?>