I want to get a directory listing inside of html tags, but everytime I generate the listing, it displays at the bottom of the pages, outside of the html and other php. It cannot work inside of an if() function either. Any help?
I'd do it like this:
1) First generate the directory listing and store the output in an array. 2) Enter whatever html is needed for the "top" of the page. 3) Do a foreach over the array to show the directory list. 4) Enter whatever html is needed for the "bottom" of the page.
Pretty much the same code as I just posted here: http://www.phpbuilder.com/forum/read.php3?num=2&id=193399&thread=193374