Re: Order directory output

From: Date: Sat, 09 Feb 2008 02:47:25 +0000
Subject: Re: Order directory output
References: 1 2  Groups: php.general 
Request: Send a blank email to php-general+get-268999@lists.php.net to get a copy of this message
On Fri, Feb 8, 2008 at 9:19 PM, Nathan Nobbe <quickshiftin@gmail.com> wrote: > i hooked up an spl example; and the files are sorted by name. > also, did you want that <p> inside or outside the <span> w/ > class=NormalText, because the opening and closing tags are > mixed up.. > damnit; i had a couple of mistakes; so sue me; its friday night! to ensure the path is in the href; i added it $resultData[$curAllowedFile->getPathname()] = $theFile->fgets(); to make sure the results are sorted; i sorted them after the parent ArrayIterator was created parent::__construct($array, $flags); $this->ksort(); and lastly, i added the anchor tag <a href="<?=$curFilename?>"><?=$curTextData?></a> i could use a drink right about now..=/ -nathan

« previous php.general (#268999) next »