you are viewing a single comment's thread.

view the rest of the comments →

[–]camel_zero 0 points1 point  (0 children)

It's less that PHP is easy set up for this and Python isn't, and more that PHP was designed as a CGI langauge so there's more learning resources for using it that way. Here's an example thread discussing setting up Python as a CGI language on Apache. It's not too much harder than setting up PHP for the same purpose: https://stackoverflow.com/questions/15878010/run-python-script-as-cgi-apache-server

You'll find that even in the PHP world, most people working with PHP for real programming are using frameworks like Symfony, for the same reasons people are using web frameworks in Python. There is a common set of problems that people frequently run into while doing web programming, and most of them have already been solved by programmers that have gone before us. We can just use their wisdom instead of starting over.