为么 PHP 仍然是一种流行但存在争议的编程语言
<div style="color: black; text-align: left; margin-bottom: 10px;"><img src="https://p3-sign.toutiaoimg.com/tos-cn-i-axegupay5k/d949ec36c70b45fcb6daee36a29a888e~noop.image?_iz=58558&from=article.pc_detail&lk3s=953192f4&x-expires=1729841605&x-signature=D7FipiuYwZTM36DoB7MrP0bipgA%3D" style="width: 50%; margin-bottom: 20px;"></div>
<p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;"><span style="color: black;"><span style="color: black;"><span style="color: black;">针对</span> PHP,<span style="color: black;">咱们</span><span style="color: black;">能够</span>说的一件事是它是持久更新的语言。</span></span></p>
<p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;"><span style="color: black;"><span style="color: black;">与许多历史悠久的编程语言<span style="color: black;">同样</span>,它经常受到<span style="color: black;">期盼</span>看到更新候选语言<span style="color: black;">研发</span>者的“诽谤”,但它<span style="color: black;">亦</span><span style="color: black;">保存</span>了不少支持者和最佳实践者,这让人想起 C++ 发明者 Bjarne Stroustrup 的明智之言:</span></span></p>
<p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;"><span style="color: black;">世界上<span style="color: black;">仅有</span>两种编程语言:人们抱怨的语言和没人<span style="color: black;">运用</span>的语言。</span></p>
<p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;"><span style="color: black;"><span style="color: black;">PHP 最初创建于 1993 年,旨在<span style="color: black;">加强</span>高级程序员 Rasmus Lerdorf 的网页,它最初并不是<span style="color: black;">做为</span>一种新的编程语言,而是有机发展的。</span></span></p>
<p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;"><span style="color: black;"><span style="color: black;">它在其存在的三十年中<span style="color: black;">持续</span>适应,<span style="color: black;">乃至</span> PHP 这个名字<span style="color: black;">亦</span><span style="color: black;">出现</span>了演变,<span style="color: black;">逐步</span><span style="color: black;">表率</span>了超文本预处理器,而不是最初的含义,即Personal Home Pages —— 个人主页。</span></span></p>
<p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;"><span style="color: black;"><span style="color: black;">尽管Web在 30 <span style="color: black;">数年</span>来<span style="color: black;">出现</span>了很大变化,但 PHP 却<span style="color: black;">始终</span>在<span style="color: black;">保持</span>以往,并继续得到用户的积极支持,并且<span style="color: black;">自己</span><span style="color: black;">定时</span>更新。其最新版本 8.3 于去年底发布,是最新的8.x系列年度版本中的最新版本。</span></span></p>
<p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;"><span style="color: black;"><span style="color: black;">当<span style="color: black;">研发</span>人员遇到 PHP 的性能限制时,人们<span style="color: black;">亦</span><span style="color: black;">已然</span>成功找到<span style="color: black;">认识</span>决<span style="color: black;">办法</span>。</span></span></p>
<p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;"><span style="color: black;"><span style="color: black;">最著名的例子是 Facebook 的技术团队,<span style="color: black;">她们</span>找到一种<span style="color: black;">办法</span>,使 PHP 能够适应其社交网络从数千名用户到数百万、数千万,<span style="color: black;">而后</span>是数十亿用户的急剧扩张。Facebook 的<span style="color: black;">研发</span>团队创建了<span style="color: black;">她们</span>自己的 PHP 方言,以缓解成长的<span style="color: black;">懊恼</span>,并进行大规模的服务器扩展工作。</span></span></p>
<p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;"><span style="color: black;"><span style="color: black;">直到今天,Facebook 继续<span style="color: black;">运用</span> PHP,Microsoft、Etsy、WordPress、MailChimp 和 Wikipedia 等<span style="color: black;">亦</span>是如此。</span></span></p>
<p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;"><span style="color: black;"><span style="color: black;">事实上,<span style="color: black;">按照</span> W3Techs 的说法,<span style="color: black;">这般</span>说道:</span></span></p>
<p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;"><span style="color: black;">在<span style="color: black;">咱们</span><span style="color: black;">晓得</span>的服务器端编程语言的所有网站中,有 76.5% <span style="color: black;">运用</span> PHP。</span></p>
<div style="color: black; text-align: left; margin-bottom: 10px;"><img src="https://p3-sign.toutiaoimg.com/tos-cn-i-6w9my0ksvp/99016c41c8e649f693e37f666d678214~noop.image?_iz=58558&from=article.pc_detail&lk3s=953192f4&x-expires=1729841605&x-signature=XvXSBvFPRYb3FA%2FtHvLMwnQmmzU%3D" style="width: 50%; margin-bottom: 20px;"></div>
<p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;"><span style="color: black;"><span style="color: black;">ASP.net、Ruby、Java 和 JavaScript 等替代<span style="color: black;">方法</span><span style="color: black;">乃至</span><span style="color: black;">没法</span>接近这一市场份额。尽管这些竞争语言在高流量网站中的<span style="color: black;">运用</span>频率较高,但 PHP 仍然是<span style="color: black;">全世界</span>排名前 1,000 的网站中超过 60% 的主导语言。</span></span></p>
<p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;"><span style="color: black;"><span style="color: black;">尽管这些数字继续证明 PHP 在服务器端脚本方面的主导地位,但它的确<span style="color: black;">起始</span><span style="color: black;">显现</span>轻微的下降。<span style="color: black;">然则</span>,当一种语言在超过四分之三的网络上<span style="color: black;">运用</span>时,即使趋势偏离它的<span style="color: black;">运用</span><span style="color: black;">亦</span>需要数年时间<span style="color: black;">才可</span>影响排名。</span></span></p>
<p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;"><span style="color: black;"><span style="color: black;"><span style="color: black;">因此呢</span>,PHP <span style="color: black;">经过</span>广泛<span style="color: black;">运用</span>保持了其<span style="color: black;">关联</span>性,但其<span style="color: black;">连续</span>流行还有其它<span style="color: black;">原由</span>。</span></span></p>
<p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;"><span style="color: black;"><span style="color: black;">PHP是开源的,<span style="color: black;">数年</span>的<span style="color: black;">运用</span><span style="color: black;">寓意</span>着有一个广泛的社区和全面的资源来支持<span style="color: black;">研发</span>人员的<span style="color: black;">运用</span>和故障排除。它<span style="color: black;">亦</span>相对容易学习,<span style="color: black;">针对</span>许多<span style="color: black;">研发</span>人员<span style="color: black;">来讲</span>,<span style="color: black;">她们</span><span style="color: black;">第1</span>次涉足 Web 编程时都会<span style="color: black;">触及</span> PHP。</span></span></p>
<p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;"><span style="color: black;"><span style="color: black;">然而,<span style="color: black;">做为</span>一种古老的、易于理解的语言<span style="color: black;">亦</span>有其缺点。由于缺乏经验的用经常<span style="color: black;">运用</span>旧教程和一点点知识拼凑网站(这是很危险的事情),你<span style="color: black;">必定</span>要看到问题,<span style="color: black;">尤其</span>是在网站安全方面。<span style="color: black;">因此呢</span>,PHP 网站仍然是黑客的<span style="color: black;">重点</span><span style="color: black;">目的</span>,<span style="color: black;">她们</span><span style="color: black;">期盼</span>找到一个不受支持的旧版本。</span></span></p>
<p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;"><span style="color: black;"><span style="color: black;">令人担忧的是,<span style="color: black;">按照</span> WordPress 统计数据,其大<span style="color: black;">都数</span>(超过 44%)网站都在<span style="color: black;">运用</span> PHP 7.1 版本,该版本的支持已于 2019 年终止。这是针对 PHP 最<span style="color: black;">平常</span>的抱怨之一,<span style="color: black;">另外</span>,语言是<span style="color: black;">因为</span>它的有机发展而产生的。</span></span></p>
<p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;"><span style="color: black;"><span style="color: black;"><span style="color: black;">倘若</span>你在<span style="color: black;">运用</span> PHP,则需要跟上新版本的步伐,<span style="color: black;">以避免</span><span style="color: black;">引起</span>其声誉受损。<span style="color: black;">倘若</span>还想学习<span style="color: black;">运用</span>其支持框架,例如 Laravel 和 Symfony。</span></span></p>
<div style="color: black; text-align: left; margin-bottom: 10px;"><img src="https://p3-sign.toutiaoimg.com/tos-cn-i-6w9my0ksvp/0c921c18f4d1491aa7315fdcf2224caa~noop.image?_iz=58558&from=article.pc_detail&lk3s=953192f4&x-expires=1729841605&x-signature=G4urWBvpEtXd4JcHcLeYVu7Vtr4%3D" style="width: 50%; margin-bottom: 20px;"></div>
<p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;"><span style="color: black;"><span style="color: black;">事实上,许多PHP <span style="color: black;">研发</span>人员的招聘信息都会<span style="color: black;">需求</span>具备这两种框架的技能。</span></span></p>
<div style="color: black; text-align: left; margin-bottom: 10px;"><img src="https://p26-sign.toutiaoimg.com/tos-cn-i-6w9my0ksvp/0ef4bffca4e44c92adfea32578cb69a2~noop.image?_iz=58558&from=article.pc_detail&lk3s=953192f4&x-expires=1729841605&x-signature=IqEkkep6w%2FGgm%2BS4MrKayPrurj8%3D" style="width: 50%; margin-bottom: 20px;"></div>
<p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;"><span style="color: black;"><span style="color: black;">例如,这篇在某个欧洲城市寻找首席 PHP 架构师的帖子<span style="color: black;">尤其</span><span style="color: black;">需求</span><span style="color: black;">认识</span> PHP 8 及以上版本。IT 咨询<span style="color: black;">机构</span> CGI 的另一个<span style="color: black;">研发</span>人员角色<span style="color: black;">期盼</span>其 PHP 程序员能够<span style="color: black;">运用</span> Symfony 和 Drupal(一种用 PHP 编写的内容管理系统)。</span></span></p>
<div style="color: black; text-align: left; margin-bottom: 10px;"><img src="https://p3-sign.toutiaoimg.com/tos-cn-i-6w9my0ksvp/e536cb82a2d2403a869122b5b6c10651~noop.image?_iz=58558&from=article.pc_detail&lk3s=953192f4&x-expires=1729841605&x-signature=LJW2ylFFpFow3dVy9KwZ68HHEjk%3D" style="width: 50%; margin-bottom: 20px;"></div>
<p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;"><span style="color: black;"><span style="color: black;">只要 PHP 仍然是世界上最常用的编程语言之一,PHP 的工作就仍然<span style="color: black;">拥有</span><span style="color: black;">关联</span>性。<span style="color: black;">况且</span>,尽管有<span style="color: black;">有些</span><span style="color: black;">剧烈</span>的批评者,大<span style="color: black;">都数</span><span style="color: black;">研发</span>者还是钦佩与信任 PHP。在Stack Overflow<span style="color: black;">近期</span>的年度调查中,PHP 被受访者认为是高度“钦佩”的,这<span style="color: black;">寓意</span>着<span style="color: black;">哪些</span><span style="color: black;">运用</span> PHP 的人愿意继续<span style="color: black;">这般</span>做下去。</span></span></p>
<p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;"><span style="color: black;"><span style="color: black;"><span style="color: black;">针对</span><span style="color: black;">哪些</span><span style="color: black;">认识</span> PHP 最新动态的人<span style="color: black;">来讲</span>,它越来越多地用于渐进式 Web 应用程序、物联网以及人工智能和<span style="color: black;">设备</span>学习(<span style="color: black;">日前</span>增长最快的技术<span style="color: black;">行业</span>)。这种灵活性和多功能性<span style="color: black;">寓意</span>着 PHP <span style="color: black;">研发</span>人员<span style="color: black;">能够</span>享受工作的多样性,<span style="color: black;">尤其</span>是<span style="color: black;">倘若</span><span style="color: black;">她们</span>找到了一个跨多个项目工作的角色,例如数字咨询<span style="color: black;">公司</span> Denkwerk 的项目,该<span style="color: black;">公司</span>是 2024 年“最佳工作场所”之一。</span></span></p>
<p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;"><span style="color: black;"><span style="color: black;">宣告——<span style="color: black;">乃至</span>呼吁——PHP 死去的<span style="color: black;">文案</span>几乎和该语言本身<span style="color: black;">同样</span>有着悠久的历史。尽管如此,PHP 依然存在着。它主导着<span style="color: black;">咱们</span>的Web和网站体验,并继续被新一代<span style="color: black;">研发</span>者采用和享受。</span></span></p>
<p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;"><span style="color: black;"><span style="color: black;">分配给<span style="color: black;">作为</span>脚本语言的个人主页后修订后的缩写词似乎<span style="color: black;">亦</span>不太合适——<span style="color: black;">亦</span>许它应该被<span style="color: black;">叫作</span>为“持久超文本预处理器”。</span></span></p>
页:
[1]