Question:
why PHP is used more for web development when same can be achived by Python in same way?
Ciastro
2012-07-28 02:33:26 UTC
python and PHP as same relevance not like its .net based.
Five answers:
Harry
2012-07-31 02:40:05 UTC
PHP has a very C-like syntax. Anyone who has been exposed to a C-like language gets it straight away. Curly braces and semi-colons work exactly as you'd expect and it feels familiar.

Python isn't that easy. Making white space significant instead of using curly braces requires some adjustment to how you think about your code. This change will slow down people who have just switched to Python.

PHP often feels like it's designed purely for creating Web pages, even if some people use it for other tasks. By default it's really an HTML template with code inserted in. Python, on the other hand, stands on its own two feet as a general purpose language. Programming for the web in Python involves choosing one of the web framework that gives you the functionality you want. If you're coding something different, however, it doesn't feel like you are working against the purpose of the language, specially as you can often use other general-purpose frameworks.
anonymous
2012-07-28 02:50:11 UTC
I suppose its preference both languages are used in massive applications I.e google use python and face book which uses php. Everything is down to personal choice I believe
Kevin
2014-05-13 02:27:20 UTC
I agree with "Angelina" it is used widely.
anonymous
2012-07-28 03:31:18 UTC
Since php is more widely used (and accepted) ppl know how to use and how to fix a problam
Peter
2014-10-06 03:07:11 UTC
plugins and cms have wide range of applications...


This content was originally posted on Y! Answers, a Q&A website that shut down in 2021.
Loading...