mharc-users

index.html file for the html dir...

2002-07-27 09:15:18
I spent a couple of minutes and worked up this PHP script to use as my
index file for the html directory.  It dynamically lists the archive
directories and creates a simple unordered list of hyperlinks to the
archives...

<html lang="en">
<head>
<title>Your Title Here</title>
</head>
<body bgcolor="white" text="black" link="blue" alink="red"
vlink="purple">
<h1>Your Title Here</h1>
<br>
<?php
$archives = dir('.');

echo "<ul>";
while($archive=$archives->read())
{
  if ( is_dir($archive) && ($archive!=".") && ($archive!="..") &&
($archive!=".catch") )
  {
    echo "<li><a href=\"$archive\">$archive</a></li>";
  }
}
echo "</ul>";
?>
</body>
</html>


-- 
Sean M. Alderman
ITRACK Systems Analyst
PACE/NCI - NASA Glenn Research Center
(216) 433-2795

Calling a windowed operating system "Windows" is like naming an
automobile "Wheels."

---------------------------------------------------------------------
To sign-off this list, send email to majordomo(_at_)mhonarc(_dot_)org with the
message text UNSUBSCRIBE MHARC-USERS

<Prev in Thread] Current Thread [Next in Thread>