note 102014 deleted from function.is-dir by danbrown

From: Date: Sun, 23 Jan 2011 17:42:50 +0000
Subject: note 102014 deleted from function.is-dir by danbrown
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-176224@lists.php.net to get a copy of this message
Note Submitter: sdfor at yahoo ---- @jasoneisen technique of using scandir will add lots of overhead if the directory is large. I think the method of opening the directory and stopping as soon as you find a single file (not . or .. ) is much more efficient.

« previous php.notes (#176224) next »