Hmm, aren't there a million PHP-based imageboard scripts already? I think I've seen other posts on /code/ or /net/ about other things like this.