愚人节导入
I don't know a lot of PHP developers that think very much of ASP. This, of course, sets the stage for a great April fools trick: we're going to change all of the links on our website from ".php" to ".asp" and see how many coworkers we can confuse the hell out of. Granted, most developers with a just few years of experience would figure out the method within a few minutes, but you can probably get the noob with this one.
我不知道很多PHP开发人员对ASP非常重视。 当然,这为愚人节大骗局打下了基础:我们将把我们网站上的所有链接从“ .php”更改为“ .asp”,并看看有多少同事可以使您摆脱困境。 当然,大多数只有几年经验的开发人员会在几分钟之内找出该方法,但是您可能会对此感到陌生。
第一步-更改链接 (Step One - Change the Links)
<!-- FROM -->
<a href="/some-page.php">Click here</a>
<!-- TO -->
<a href="/some-page.asp">Click here</a>
第二步-.htaccess代码 (Step Two - The .htaccess Code)
AddType application/x-httpd-php .asp
Have fun and trick some people today!
玩得开心,今天欺骗一些人!
翻译自: https://davidwalsh.name/april-fools-change-php-pages-asp
愚人节导入