in reply to PHP or Perl/CGI
I'm 100% sure it already exists, in perl ( faqomatic ) and php ( phpmyfaq ), you just have to find it :)