phpinfo() : Why no PHP & Zend image when expose_php=off?
| From: | Yasuo Ohgaki | Date: | Wed, 24 Oct 2001 13:09:14 +0000 |
| Subject: | phpinfo() : Why no PHP & Zend image when expose_php=off? | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-68951@lists.php.net to get a copy of this message | ||
I'm curious about why there is no PHP & Zend image and take a look
at info.c finally.
phpinfo() do not show PHP & Zend logo when expose_php is set to
off. I thought this is a some thought of a problem at first. This
behaviour is confusing anyway. Any good reason for this?
It just doesn't make sense, no images if expose_php=off.
Any need to hide images, if expose_php=off?
Here is code from ext/standard/info.c.
-----
if (expose_php) {
PUTS("<a href=\"http://www.php.net/\"><img src=\"");
if (SG(request_info).request_uri) {
PUTS(SG(request_info).request_uri);
}
if ((ta->tm_mon==3) && (ta->tm_mday==1)) {
PUTS("?="PHP_EGG_LOGO_GUID"\" border=0 align=\"right\"
alt=\"Thies!\"></a>");
} else {
PUTS("?="PHP_LOGO_GUID"\" border=0 align=\"right\" alt=\"PHP
Logo\"></a>");
}
}
-----
php_info_print_box_start(0);
if (expose_php) {
PUTS("<a href=\"http://www.zend.com/\"><img src=\"");
if (SG(request_info).request_uri) {
PUTS(SG(request_info).request_uri);
}
PUTS("?="ZEND_LOGO_GUID"\" border=\"0\" align=\"right\"
alt=\"Zend
logo\"></a>\n");
--
Yasuo Ohgaki