Tijnema, In fact this same Question popped into my head - which one should I choose and why to choose one over the other? I tried both of the codes and compared them. While I can't comment on any security benefits of using either, I have to say, I did find glob() to be slightly faster in bringing up the result sets. To detail the speed issue - while using them on a single record, which scans the directory and displays 2 or 3 records at one time, I didn't notice much of a difference between glob() and exec(). However, I tested displaying all the *.vox files in the directory on the page. And I have to say that glob() listed the almost 400 filenames on the page quite considerably faster then exec() did. Just the speed at this point has led me to stick with glob(). However, if any issue should arise, I wouldn't hesitate to revert to exec(). I find them both very efficient & effective. On 3/30/07 10:33 AM, "Tijnema !" <tijnema@xxxxxxxxx> wrote: > I see you're using glob now, but I found this comment in your other thread: > "Yes, and while I dig up on glob(), to be quite honest, the exec is working > very effectively and fast for my searches & download application - so can't > complain about it one bit." > > I didn't test both myself, but you might want to see the difference in > performance. > > Tijnema > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php