I know what PHP is, I just don’t understand the purpose of it. Why do websites/web servers need server-side scripting when Ruby on Rails, Perl or Python could be used? I don't get why it's used and what it does. It doesn't produce content; xhtml and css do that. It can't really program/script the server; Apache does that. Could someone please clear this up for me. Thanks.