|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2000-06-28 07:07 UTC] stas at cvs dot php dot net
[2000-06-28 09:48 UTC] derek at grouptel dot net
[2000-08-01 04:37 UTC] andi@php.net
[2000-08-18 18:41 UTC] sniper@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2026 The PHP GroupAll rights reserved. |
Last updated: Mon Jun 29 00:00:01 2026 UTC |
The goal is to read a list of files in a directory into an array and sort them. The following code snip returns different results between Netscape and IE. ### snip ############################ $handle=opendir($root.$dir); while ($file = readdir($handle)) { $retVal[count($retVal)] = $file; } closedir($handle); sort($retVal); ### snip ############################ Neither browser gets an error, but in IE the array contains all of the files and directories, in Netscape only the directories are in the array (no files). Env: Linux 2.2.15 Apache 1.3.12 PHP 4.0.0 (MySQL, TrackVars)