|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[1998-07-21 18:39 UTC] zeev
|
|||||||||||||||||||||||||||
Copyright © 2001-2026 The PHP GroupAll rights reserved. |
Last updated: Mon Jun 15 07:00:01 2026 UTC |
This bug actually has existed from RC4 through 3.0.2. It only happens in the Windows version. It works fine on our Solaris box. This script should print a table. The first row has all the files, the second has the file size. <? print("<TABLE BORDER=\"1\">\n"); $myDirectory = opendir("."); print("<TR>\n"); print("<TH>Filename</TH>\n"); while($entryName = readdir($myDirectory)) { print("<TD>$entryName</TD>\n"); } print("</TR>\n"); rewinddir($myDirectory); print("<TR>\n"); print("<TH>Size</TH>\n"); while($entryName = readdir($myDirectory)) { print("<TD>" . filesize($entryName) . "</TD>\n"); } print("</TR>\n"); closedir($myDirectory); print("</TABLE>\n"); ?>