|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2000-07-01 08:32 UTC] andi at cvs dot php dot net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Wed Dec 03 03:00:01 2025 UTC |
<?php $handle=opendir('.'); while ($file = readdir($handle)) { if ($file != "." && $file != "..") { echo "$file\n"; } } closedir($handle); ?> This script the same one from php manual. in php 4.0 It's was ok. but in php 4.0.1, sometimes show following messages. 1 is not a valid Directory resource in /home/silver/public_html/readdir.php3 on line 5