i'll point you in the right direction:
http://us3.php.net/manual/en/function.scandir.php
foreach through scandir's results and use substr and strtolower to see if it begins with B.
if you want it coded, pay someone
edit: if you're not using PHP 5.. use opendir and readdir, for similar results