text: <html>
  <head>
  <title>013.php</title>
  <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
  <script>
  function navigate(e) {
      var keynum = (window.event) // IE
          ? e.keyCode
          : e.which;
      if (keynum == 8) {
          window.location = "012.php" + ".html";
          return false;
      }
      if (keynum == 13 || keynum == 32) {
          window.location = "014.php" + ".html";
          return false;
      }
      if (keynum == 73 || keynum == 105) {
          window.location = "index.html";
          return false;
      }
      return true;
  }
  </script>
  </head>
  <body onkeypress="return navigate(event)">
  <pre>                                     Window
    
    &lt;!DOCTYPE html&gt;
    &lt;html&gt;
    &lt;body&gt;
    &lt;?php
    
    require_once 'Log.php';
    
    $cfg = array('title' =&gt; 'Log Window');
    $logger = Log::singleton('win', 'LogWindow', 'factorial', $cfg);
    
    $n = 10;
    $factorial = 1;
    for ($i = 1; $i &lt;= $n; $i++) {
        $logger-&gt;log(&quot;f($i) = $factorial * $i&quot;);
        $factorial *= $i;
    }
    echo &quot;factorial($n) = $factorial\n&quot;;
    ?&gt;
    &lt;/body&gt;
    &lt;/html&gt;
  
  
  
  </pre>
  </body>
  