Re: SPL

From: Date: Sun, 28 Oct 2007 06:27:53 +0000
Subject: Re: SPL
References: 1 2 3  Groups: php.general 
Request: Send a blank email to php-general+get-263755@lists.php.net to get a copy of this message
Børge Holen wrote:
I found this code at php.net witch needs very little modifications and can do so much, but I can't figure out how to make it read alphabeticly as mentioned $it = new RecursiveDirectoryIterator($_GET['location']); foreach (new RecursiveIteratorIterator($it, 2) as $path){ if($path->isDir()){ // writing to some static file }elseif(some unfinished statement){ fwrite($dynfile, "$path\n"); }else{ // writing to some static file } } I just... nothings keeping me from sorting the the dynfile after writing, but also that seems to do the job twice instead of doing it correct the first time.
-nathan
I am trying to figure out what you are trying to do here. -- Jim Lucas "Perseverance is not a long race; it is many short races one after the other" Walter Elliot "Some men are born to greatness, some achieve greatness, and some have greatness thrust upon them." Twelfth Night, Act II, Scene V by William Shakespeare

« previous php.general (#263755) next »