Quote Originally Posted by visualAd
That is not a very safe peice of code to use as you could supply the path to any directoy on the server in the URL.
That crossed my mind, but the idea was to list off all mp3s in the dirs with cleaner details then just opening up the dirs for browsing. By limiting what files can be displayed with preg_match, would you still say its unsafe (with the intent i stated) ?

Thanks for your input.

_