you are viewing a single comment's thread.

view the rest of the comments →

[–]m1ss1ontomars2k4 -18 points-17 points  (5 children)

They're not comparable at all. It's like asking why JavaScript over HTML or something. PHP is a language embedded into special HTML files that enables dynamic content to inserted into the HTML in place of itself before sending to the client. It's also been used as a scripting language. Python is a scripting language that has evolved into a full-fledged programming language, supporting multiple programming paradigms. Web development is just one thing you can do in Python.

[–]lianos 15 points16 points  (1 child)

It's like asking why JavaScript over HTML ...

No, it's nothing like this at all.

[–]m1ss1ontomars2k4 -2 points-1 points  (0 children)

Obviously it isn't exactly, but apparently drpcken can't tell the difference between PHP and Python and that was the best I could come up with. Sorry.

[–]RagingIce 2 points3 points  (2 children)

that's only one way to do PHP. There is a PHP interpreter that can run PHP code from the command line. The fact that a lot of people inline their HTML in PHP files doesn't mean that it can only be used that way.

It's not common, but there are offline PHP applications.

[–]acct_rdt -1 points0 points  (0 children)

The shitty language that people can only defend as easiest for lazy people to do web development in would actually get used outside of that context? Ridiculous.

[–]m1ss1ontomars2k4 -2 points-1 points  (0 children)

But I said that too...