Try the search function here.... it has been discussed many times already. Search for "directory script" etc.....