note 34344 deleted from function.opendir by alindeman
| From: | alindeman@php.net | Date: | Thu, 24 Jul 2003 12:24:07 +0000 |
| Subject: | note 34344 deleted from function.opendir by alindeman | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-52556@lists.php.net to get a copy of this message | ||
Note Submitter:
----
<html>
<head>
<BODY BGCOLOR =lightgreen>
<?php
$home=basename (getcwd());
echo "<TITLE>$home Reporting </TITLE>" ?>
</head>
<body>
<CENTER>
<P><IMG SRC=/images/apache_pb2.gif> </P>
<P><IMG SRC=/images/openssl_button.gif </P>
</CENTER>
<HR>
<P><B><FONT COLOR="#FF0000"><FONT SIZE=+2>
<?php
$dir = getcwd() ;
if ( is_dir ( $dir)) {
if ($dh = opendir ($dir)) {
while (( $file = readdir ( $dh)) !== false ) {
if (is_file ($file) && !preg_match ("/^index/", $file)) {print
"<P><A HREF=$file>$file</A></P>";}
}
closedir ($dh);
}
}
?>
<HR>
</FONT>
</body>
</html>