note 58914 added to function.readdir

From: Date: Sun, 20 Nov 2005 09:47:21 +0000
Subject: note 58914 added to function.readdir
Groups: php.notes 
Request: Send a blank email to php-notes+get-98846@lists.php.net to get a copy of this message
<? /* Version: 1.1.1(BUG Fixed) Author: HKLCF (admin@hklcf.com) Copyright: HKLCF (www.hklcf.com) Last Modified: 2005/11/20 */ require "header.php"; $file=@opendir("./upload"); echo "<table cellspacing=1 cellpadding=4 width=99% align=center class=tableborder> <tr><td colspan=6 class=header><table cellspacing=0 cellpadding=0 width=100%> <tr class=smalltxt><td class=bold>File List</td> <td align=right><a href=index.php>Go Back</a></td></tr></table></td></tr>"; echo "<tr class=category><td>"; while($buffer=readdir($file)) { if (($buffer!=".")and($buffer!="..")) { echo ('<a href="./upload/'.$buffer.'" target=_blank>'.$buffer.'</a><br>'); } } echo"</td></tr>"; closedir($file); require "footer.php"; ?> ---- Manual Page -- http://www.php.net/manual/en/function.readdir.php Edit -- http://master.php.net/manage/user-notes.php?action=edit+58914 Delete: added to the manual -- http://master.php.net/manage/user-notes.php?action=delete+58914&report=yes&reason=added+to+the+manual Delete: bad code -- http://master.php.net/manage/user-notes.php?action=delete+58914&report=yes&reason=bad+code Delete: spam -- http://master.php.net/manage/user-notes.php?action=delete+58914&report=yes&reason=spam Delete: useless -- http://master.php.net/manage/user-notes.php?action=delete+58914&report=yes&reason=useless Delete: non-english -- http://master.php.net/manage/user-notes.php?action=delete+58914&report=yes&reason=non-english Delete: already in docs -- http://master.php.net/manage/user-notes.php?action=delete+58914&report=yes&reason=already+in+docs Delete: other reasons -- http://master.php.net/manage/user-notes.php?action=delete+58914&report=yes Reject -- http://master.php.net/manage/user-notes.php?action=reject+58914&report=yes Search -- http://master.php.net/manage/user-notes.php

« previous php.notes (#98846) next »