Yes, it's quite intentional.

Because there is no way to embed images within HTML, the way PHP displays 
these images is by detecting a special kind of input string.  If this input 
string is detected, PHP spits out the PHP or Zend image, as 
necessary.  Since this allows remote users to detect whether PHP is 
installed, this feature is disabled when you have expose_php set to off.


At 15:09 24-10-01, Yasuo Ohgaki wrote:
>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
>
>
>--
>PHP Development Mailing List <http://www.php.net/>
>To unsubscribe, e-mail: [EMAIL PROTECTED]
>For additional commands, e-mail: [EMAIL PROTECTED]
>To contact the list administrators, e-mail: [EMAIL PROTECTED]


-- 
PHP Development Mailing List <http://www.php.net/>
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to