PHP是最好的语言?
<p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;">PHP is the best language for web programming!</p>
<p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;">先讲一个笑话:</p>
<p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;">女神:<span style="color: black;">倘若</span>你能让这个论坛的人都吵起来,今晚我就跟你走。</p>
<p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;">程序猿:PHP语言是最好的语言!</p>
<p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;"> ... 随即,论坛炸了,各路大神们<span style="color: black;">快速</span>吵了起来。</p>
<p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;">女神:服了U,<span style="color: black;">咱们</span>走吧,你想干啥都行。</p>
<p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;">程序猿:今天不行,我<span style="color: black;">必定</span>要说服<span style="color: black;">她们</span>,PHP语言是最好的语言!</p>
<p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;">“PHP是最好的语言”这梗传了好久了, 话说200x-201x年前间,随着Wordpress内容管理系统、Zend框架、Laravel框架以及Discuz论坛的流行,PHP确实挺火的,那真是火的一塌糊涂,当年程序猿们看着这个比ASP还要好用的语言确实兴奋了,我要学习PHP,学习PHP是我<span style="color: black;">青年</span>,Nothing can stop me!</p>
<p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;"><span style="color: black;">做为</span>一名资深的IT民工<span style="color: black;">亦</span>算是参与其中,当年我可是<span style="color: black;">熟悉</span><span style="color: black;">把握</span>了LAMP(Linux+Apache+MySQL+PHP) 的安装与配置呢,虽<span style="color: black;">而后</span>来Apache被Nginx和php-fpm替换了,咱可<span style="color: black;">亦</span>是能够跟住主流的脚步。</p>
<p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;">后来我司php站点被上传文件放上了木马,管理员账号被盗,数据库被脱... 真是一把辛酸泪。</p>
<p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;"><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>都是老牌程序员用来自嘲:初级,技术差,键盘侠,不求进步,知识落伍...</p>
<p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;">为啥今天又提起php呢,<span style="color: black;">瞧瞧</span>这几张图吧</p>
<div style="color: black; text-align: left; margin-bottom: 10px;"><img src="https://p3-sign.toutiaoimg.com/tos-cn-i-axegupay5k/509130c90f4249089f115b2190408a88~noop.image?_iz=58558&from=article.pc_detail&lk3s=953192f4&x-expires=1728212930&x-signature=f9cMvmrLyHiCeo7F3D%2BS2fSnI70%3D" style="width: 50%; margin-bottom: 20px;"></div>
<div style="color: black; text-align: left; margin-bottom: 10px;"><img src="https://p3-sign.toutiaoimg.com/tos-cn-i-6w9my0ksvp/2f0e370dde6a4a32958573afd1559f7d~noop.image?_iz=58558&from=article.pc_detail&lk3s=953192f4&x-expires=1728212930&x-signature=pZ5NZ8LBU6FrpvjG87cdYLcGw2Y%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>对这段PHP代码的解析:</p>
<div style="color: black; text-align: left; margin-bottom: 10px;"><img src="https://p26-sign.toutiaoimg.com/tos-cn-i-6w9my0ksvp/9df7b2149ae143eebf3e6f87a4518335~noop.image?_iz=58558&from=article.pc_detail&lk3s=953192f4&x-expires=1728212930&x-signature=NRXcGUrsKAzcpeA2kakZbnp7MeQ%3D" style="width: 50%; margin-bottom: 20px;"></div>
<div style="color: black; text-align: left; margin-bottom: 10px;"><img src="https://p3-sign.toutiaoimg.com/tos-cn-i-6w9my0ksvp/aa5c0710cd674184b11a9a79f70efa01~noop.image?_iz=58558&from=article.pc_detail&lk3s=953192f4&x-expires=1728212930&x-signature=D3hkz3fBkdSyDFm5Tbte65ZE%2F48%3D" style="width: 50%; margin-bottom: 20px;"></div>
<p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;">真心话相比其他语言,PHP 的代码风格和安全性方面确实太差了,漏洞太多<span style="color: black;">引起</span><span style="color: black;">有些</span>小黑灰帽子和工具Boy们<span style="color: black;">各样</span>扫描,渗透,真TM是闲的。</p>
<p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;">大批量扫描之前你<span style="color: black;">最少</span><span style="color: black;">瞧瞧</span>我web服务器的指纹识别啊,连个PHP环境都不是,你上来就<span style="color: black;">根据</span>“PHP最好的语言方式”开搂?</p>
<p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;">Tips:Web指纹识别的原理<span style="color: black;">重点</span>是<span style="color: black;">经过</span>分析<span style="color: black;">目的</span>网站的HTTP请求和响应,提取出其中的特征信息,<span style="color: black;">而后</span>与已知的指纹信息进行比对,从而判断出<span style="color: black;">目的</span>网站所<span style="color: black;">运用</span>的技术栈和配置信息。 这些特征信息可能<span style="color: black;">包含</span>服务器响应头、Cookie、Session ID等。</p>
<p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;">典型的web服务器指纹:</p><span style="color: black;"><span style="color: black;">运用</span>curl查看站点的header</span>
<span style="color: black;">$</span> <span style="color: black;">curl</span> <span style="color: black;">-I</span> <span style="color: black;">https://xxx/10002578.html</span>
<span style="color: black;">HTTP/1.1</span> <span style="color: black;">200</span> <span style="color: black;">OK</span>
<span style="color: black;">Date:</span> <span style="color: black;">Tue,</span> <span style="color: black;">25</span> <span style="color: black;">Jun</span> <span style="color: black;">2024</span> <span style="color: black;">05</span><span style="color: black;">:53:29</span> <span style="color: black;">GMT</span>
<span style="color: black;">Content-Type:</span> <span style="color: black;">text/html;</span> <span style="color: black;">charset=UTF-8</span>
<span style="color: black;">Content-Length:</span> <span style="color: black;">58085</span>
<span style="color: black;">Connection:</span> <span style="color: black;">keep-alive</span>
<span style="color: black;">Server:</span> <span style="color: black;">openresty</span>
<span style="color: black;">Vary:</span> <span style="color: black;">Accept-Encoding</span>
<span style="color: black;">X-Powered-By:</span> <span style="color: black;">PHP/7.3.23</span>
<span style="color: black;">Expires:</span> <span style="color: black;">Tue,</span> <span style="color: black;">25</span> <span style="color: black;">Jun</span> <span style="color: black;">2024</span> <span style="color: black;">07</span><span style="color: black;">:53:16</span> <span style="color: black;">GMT</span>
<span style="color: black;">Cache-Control:</span> <span style="color: black;">max-age=7200,</span> <span style="color: black;">public</span>
<span style="color: black;">Age:</span> <span style="color: black;">13</span>
<span style="color: black;">via:</span> <span style="color: black;">CHN-BJ-CUCC5-CACHE22,CHN-BJ-CUCC5-CACHE17</span>
<span style="color: black;">x-hcs-proxy-type:</span> <span style="color: black;">1</span>
<span style="color: black;">X-CCDN-CacheTTL:</span> <span style="color: black;">43200</span>
<span style="color: black;">Accept-Ranges:</span> <span style="color: black;">bytes</span>
<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>上了CDN,web服务器采用了openresty,</span>
<span style="color: black;">给它手动点个赞!</span>
<p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;">就算我承认了php是最好的语言,但你php的漏洞<span style="color: black;">亦</span>忒多了,<span style="color: black;">引起</span>被安全站点拿来<span style="color: black;">做为</span>漏洞学习和演练的场所,<span style="color: black;">例如</span>dvwa/bwapp/sqli-labs,你说阔怕不阔怕,丢人不丢人。</p>
<p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;"><a style="color: black;">#php最好的语言#</a><a style="color: black;">#php#</a></p>
我完全赞同你的观点,思考很有深度。
页:
[1]