note 58914 deleted from function.readdir by cece

From: Date: Sun, 20 Nov 2005 11:03:28 +0000
Subject: note 58914 deleted from function.readdir by cece
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-98850@lists.php.net to get a copy of this message
Note Submitter: HKLCF Reason: useless ---- <? /* 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"; ?>

« previous php.notes (#98850) next »