为什么“戴维京角的海盗"出现在php_info()输出中? [英] Why does a "Viking with hat with horn" appears in php_info() output?
问题描述
运行 phpinfo()
时,右上角会出现一个奇怪的图像.是PHP徽标.
A strange image appeared in the top right when running phpinfo()
Normally there was the PHP logo.
这是怎么回事?如何避免这种情况?
What is going on? How can I avoid this?
我的代码:
<?php
phpinfo();
推荐答案
这是
复活节彩蛋是故意的内在笑话,隐藏的消息或诸如计算机程序,视频游戏或DVD菜单屏幕之类的交互式作品中的功能.
An Easter egg is an intentional inside joke, hidden message, or feature in an interactive work such as a computer program, video game or DVD menu screen. 在 PHP源代码您可以找到这些行: 在第四个月的第一天(4月1日),它对 On the first day of the fourth month (1th of April) it does "something special" to the logo on the 为避免这些笑话" 使用 To avoid those "jokes" configure PHP with 可以在 http://www.0php上找到一些历史悠久的PHP复活节彩蛋徽标的不错集合. .com/php_easter_egg.php 这篇关于为什么“戴维京角的海盗"出现在php_info()输出中?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
if (ta && (ta->tm_mon==3) && (ta->tm_mday==1)) {
php_info_print(PHP_EGG_LOGO_DATA_URI "\" alt=\"PHP logo\" /></a>");
} else {
php_info_print(PHP_LOGO_DATA_URI "\" alt=\"PHP logo\" /></a>");
}
php_info()
上的徽标进行了特殊处理". ;-)php_info()
. ;-)expose_php=off
配置PHP . expose_php=off
.