Quantcast
Channel: PHP Freaks: PHP Help
Viewing all articles
Browse latest Browse all 13200

Beginner with beginner question re: listing specific file type

$
0
0

Hi all, I am new to PHP, really enjoying what I am learning. I went through Kevin Skoglund's tutorial and created a CMS http://www.trepaning.com/cms/public  I am now doing other courses, but have a nagging loose end from the CMS I am curious to remedy.

 

http://www.trepaning.com/cms/public/index.php?subject=2 shows a list of folders and files from a directory scan, not something part of the actual tutorial (neither was how to get it all online). What I am looking to do is have no file type except MP3 be listed (an HTML and a PHP file are also being listed), and I would like the folder names to not be hotlinked. With proper folder structure, the extra file types would not be an issue because they would not be present, but I am curious because of this set up how it could be remedied to ignore all but MP3 and hotlink only the MP3s while also presenting the tree structure.

 

I am usually frst to just work these through, as I really enjoy figuring out solutions, but this time around, I would be more interested in whatever variety of solutions can be presented to learn more that way, as this is not really important enough for me to take time away from the studies currently underway. Anyway, there's my question, and if anyone wants to send a quick answer, that'd be great. Regardless, I am enjoying PHP and mySQL far more than I would have expected and am seriously upset I did not pursue them years ago. Thanks!


Viewing all articles
Browse latest Browse all 13200

Latest Images

Trending Articles



Latest Images