If I'm looking to serve dynamic content, which language is going to be the best option(fastest I guess). So I guess I'm really asking what is going to be the fastest compiler/interpreter. From what I've read Java seems to be bad idea, but I've nothing to compare the other options, Python, Ruby, PHP.
closed as not constructive by Bryan Dunsmore Dec 24 '12 at 16:59
As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references, or expertise, but this question will likely solicit debate, arguments, polling, or extended discussion. If you feel that this question can be improved and possibly reopened, visit the help center for guidance.If this question can be reworded to fit the rules in the help center, please edit the question.
Short: use ruby
Long: I have developed web-applications for 15 years and have not seen or heard anything that comes close to the ease of ruby on rails. But off course it always depends.
Sinatra (also a ruby framework) may be the better choice if it's just a small thing.
And even php may be good if it's a really small thing (1-2 pages). it certainly is easiest to deploy on a standard box. Php easily ends up a mess if it's bigger.
The speed you should probably be looking for is development speed, not execution. Ruby on rails (possibly with puma web server) and database access will get you maybe 10 concurrent users on the pi. With sinatra (and a less complex application) maybe 20.
Also ruby comes with an excellent package management, bundler, easy but powerful templating language (erb) and lots of gems to get you up to speed.
I don't know about fastest, but php is the most common for dynamic content. What matters most is what language you are best at/have packages utilizing.