Re: Order directory output

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Fri, Feb 8, 2008 at 9:19 PM, Nathan Nobbe <quickshiftin@xxxxxxxxx> 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

[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux