/home/wpollock1/public_html/PHP/index.php

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html lang="en"> <head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<meta name="description" content="PHP Demos">
<meta name="author" content="Wayne Pollock">
<link rel="contents" href="../index.htm">
<link rel="previous" href="../index.htm">
<link rel="Icon" type="image/x-icon" href="../images/PHP.ico">
<link rel="stylesheet" href="../Styles.css" type="text/css">

<title> PHP Demos </title>

<script type="text/JavaScript" src="../Common.js"> </script>

</head>
<body>
<div class="Center">
<h1> PHP Demos </h1>
<h2>&nbsp;</h2>
</div>

<div class="Indent">
<?php
   // Script to produce a list of links for all PHP files in this directory.
   // Written 8/2004 by Wayne Pollock, Tampa Florida USA.  All Rights Reserved.

   // Create a directory object for the current directory:
   $cwd = getcwd();
   if ( ! is_readable($cwd) )
   {  die( "$cwd is unreadable.\n" );
   }
   $dir = dir( $cwd ) or die( $php_errormsg );

   // Determine the name of this script (so not to show it in list):
   $myPathArray = explode( '/', $_SERVER['PHP_SELF'] );
   $last = count( $myPathArray ) - 1;
   $myName = $myPathArray[ $last ];

   // For each regular file in the current directory (except myself):
   while ( ($file = $dir->read()) !== false )
   {
      if ( is_dir( $file ) /*or $file == $myName*/ )
      {  continue;
      }

/*
      // If file is a PHP file, then generate a link to it:
      if ( preg_match( '/\.php$/i', $file) ) {
*/
         echo "<p> View <a href=\"$file\">$file</a>&nbsp; &nbsp;\n";
         echo "(<a href=\"lister.php?file=$file&amp;linenums\">"
            . "view source</a>) </p>\n";
/*      } */
   }
?>
</div>

<div>
<?php
    $modi = @filemtime(__FILE__);
    echo "(This page last modified: " . gmdate('Y-m-d\TH:i:s+00:00', $modi) . ")";
?>
</div>

<div>
<script type="text/JavaScript"> <!--
   addFooter( "Question: PHP Demos" );
// --> </script>
<noscript>
    <p> This page was last updated by Wayne Pollock. </p>
</noscript>

</div></body></html>