4 ms·
Not trolling, honest question: why is PHP still used? What makes it preferable over alternative server-side technologies? I have programmed PHP before, and I kn
by BasDirks 15y ago
Not trolling, honest question: why is PHP still used? What makes it preferable over alternative server-side technologies? I have programmed PHP before, and I know I could just Google this question, but this kind of search usually turns up rants by language zealots.
- noobiscus 15y agoSimple; PHP is everywhere. Meaning; you must go out of your way to find a host which supports Django (not far out of your way, but still) You would have to go out of your way to find a host which does NOT support PHP. Or alternatively; WordPress uses PHP, ergo people still use and write PHP.
- tarmstrong 15y ago> Not trolling... I know I could just Google this question, but this kind of > search usually turns up rants by language zealots. Isn't that what trolling is? I'm not sure why that would even provoke rants by language zealots. It's a simple question with a simple answer: big libraries and projects that can't be ported in an afternoon. That is to say, Haskell is a nice language but there's no Drupal port to Haskell.
- BasDirks 15y agoIt's not trolling, look at the excellent answers that I received, including yours.
- jasonlotito 15y ago> why is PHP still used? What makes it preferable over alternative server-side technologies? Years longer of being a web-focused language than other options. Lots and lots of really good tools, all easily installable via PEAR or PECL, or on the development side. An excellent community. Lots of smart developers. Lots of support from big companies (Not to mention acceptance at the enterprise level). Continued development and progress. Other technologies don't offer any big advantages to switching. Despite what you might think by reading HN, PHP is still a major player, and still has a lot of momentum going forward. Using PHP for your web site is not the exception.