Ruby on Rails will provide you with a way of creating a website from database content, and you can bake in REST too, IIRC. There are a number of books on it, but I'm afraid I'm not sure what the best one would be. Though Twitter reckons it doesn't scale well:
http://www.readwriteweb.com/cloud/2011/ ... r-java.phpPerl has a similar framework called Catalyst.
I believe Python has something similar.
Then there is Java Enterprise...
It doesn't all have to be PHP
