note 102583 deleted from directoryiterator.construct by danbrown

From: Date: Wed, 23 Feb 2011 15:57:08 +0000
Subject: note 102583 deleted from directoryiterator.construct by danbrown
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-177255@lists.php.net to get a copy of this message
Note Submitter: flobee ---- well, using clients it in multiple plattforms standard function are still required! <?php $paths = array('/tmp/', 'c:/tmp/'); foreach ($paths as $path) { foreach (new DirectoryIterator($path) as $file) { // ... ?> if you are on *nix systems the windows path 'c:/tmp/' will throw an exception :-/ So check with is_dir() or someting before using it.

« previous php.notes (#177255) next »