note 34344 added to function.opendir

From: Date: Thu, 24 Jul 2003 12:05:50 +0000
Subject: note 34344 added to function.opendir
Groups: php.notes 
Request: Send a blank email to php-notes+get-52552@lists.php.net to get a copy of this message
<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> ---- Manual Page -- http://www.php.net/manual/en/function.opendir.php Edit Note -- http://master.php.net/manage/user-notes.php?action=edit+34344 Delete Note -- http://master.php.net/manage/user-notes.php?action=delete+34344&report=yes Reject Note -- http://master.php.net/manage/user-notes.php?action=reject+34344&report=yes

« previous php.notes (#52552) next »