TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

An Internet of PHP

6 点作者 hashar超过 1 年前

2 条评论

hashar超过 1 年前
A post about PHP usage on the web which remains strong despite all the buzz about NodeJS, JavaScript frameworks or WebAssembly. It tones down the echo chamber always following the latest trend and reminds us that despite being twenty+ years old, PHP still powers up most of the web today.<p>First paragraph as a teaser for those not clicking the link immediately:<p>&gt; PHP is big. The trolls can proclaim its all-but-certain “death” until the cows come home, but no amount of heckling changes that the Internet runs on PHP. The evidence is overwhelming. What follows is a loosely organised collection of precisely that evidence.
idoubtit超过 1 年前
I don&#x27;t disagree with the post, though its content is of low quality. I think modern PHP is an okay language for the web, and that it will stay there for a long time — mostly because many old projects will keep using it. But I can&#x27;t envision a bright and expanding future for PHP.<p>The irony is that the post claims &quot;the Internet runs on PHP. The evidence is overwhelming.&quot; and cites companies... that have moved away from PHP. As far as I know, Facebook doesn&#x27;t use PHP anymore. There also a link to Slack, that migrated to Hack[^1], a language which started as a fork of PHP but is now quite different.<p>As for the first argument of the page, statistics from W3Tech, the number of PHP sites is mostly a consequence of a few widespread PHP CMS, like Wordpress. It&#x27;s not a sign that new PHP code is written or even that development in these CMS is still going strong.<p>In the section &quot;Anecdotes&quot;, the reference to &quot;the enormous lead&quot; according to ArsTechnica is junk: ArsTechnica&#x27;s text is just a comment on the W3Tech report mentioned above, it brings nothing new.<p>In the &quot;PHP at scale&quot; section, I don&#x27;t deny that it&#x27;s possible to do so, but if Facebook and Slack moved away from PHP, it&#x27;s probably because programs with other languages scale better. In Wikipedia&#x27;s infrastructure, there are some custom extensions[^2] (compiled plugins for PHP written in C). The right question is not &quot;Can it scale?&quot; but &quot;Is it easy to scale?&quot;. In my experience, handling hundreds of concurrent connections (online exams) with Moodle (a PHP Learning CMS) required much more resources than we expected. Laravel can scale, but I guess scale problems would appear much later with some alternatives.<p>[^1]: <a href="https:&#x2F;&#x2F;slack.engineering&#x2F;hacklang-at-slack-a-better-php&#x2F;" rel="nofollow noreferrer">https:&#x2F;&#x2F;slack.engineering&#x2F;hacklang-at-slack-a-better-php&#x2F;</a><p>[^2]: <a href="https:&#x2F;&#x2F;upload.wikimedia.org&#x2F;wikipedia&#x2F;commons&#x2F;e&#x2F;ee&#x2F;MediaWiki_infrastructure_2022.png" rel="nofollow noreferrer">https:&#x2F;&#x2F;upload.wikimedia.org&#x2F;wikipedia&#x2F;commons&#x2F;e&#x2F;ee&#x2F;MediaWik...</a>
评论 #37444223 未加载
评论 #37421371 未加载