List Info

Thread: note 77479 added to function.scandir




note 77479 added to function.scandir
user name
2007-08-30 21:44:05
Bear in mind that sorting is *always* performed when
scandir() is called. String sorting takes O(|s|n log n)
runtime, and this adds to the burden of the server's memory
and processing power.

Therefore, whenever the alphabetical order of the directory
content is unimportant, especially if sorting is to be
performed by another order, or the natural order of the
files on the filesystem is to be utilized, the use of
opendir(), readdir() and closedir() combined is always
preferred to scandir().
----
Server IP: 203.169.164.81
Probable Submitter: 210.6.133.184
----
Manual Page -- htt
p://www.php.net/manual/en/function.scandir.php
Edit        -- https://master
.php.net/note/edit/77479
Del: integrated  -- h
ttps://master.php.net/note/delete/77479/integrated
Del: useless     -- http
s://master.php.net/note/delete/77479/useless
Del: bad code    -- htt
ps://master.php.net/note/delete/77479/bad+code
Del: spam        -- https:/
/master.php.net/note/delete/77479/spam
Del: non-english -- 
https://master.php.net/note/delete/77479/non-english
Del: in docs     -- http
s://master.php.net/note/delete/77479/in+docs
Del: other reasons-- https://mast
er.php.net/note/delete/77479
Reject      -- https://mast
er.php.net/note/reject/77479
Search      -- https://
master.php.net/manage/user-notes.php

-- 
PHP Notes Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub
.php


[1]

about | contact  Other archives ( Real Estate discussion Medical topics )