Re: phpinfo() : Why no PHP & Zend image when expose_php=off?

From: Date: Wed, 24 Oct 2001 14:25:49 +0000
Subject: Re: phpinfo() : Why no PHP & Zend image when expose_php=off?
References: 1 2  Groups: php.dev 
Request: Send a blank email to php-dev+get-68956@lists.php.net to get a copy of this message
Yasuo Ohgaki wrote:
Okay. I was just curious why phpinfo() behaves differently, since 4.0.6 always shows images. IIRC. I thought mbstr-enc-trans is doing something wrong for the images at first :(
Oops. I meant "mbstring", not "mbstr-enc-trans". "mbstr-enc-trans" is for HTTP input char encoding tranlation... Yasuo Ohgaki
-- Yasuo Ohgaki Zeev Suraski wrote:
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 sort of a problem at first. This behaviour is confusing anyway. Any good reason for this?
_________________________________________________________ Do You Yahoo!? Get your free @yahoo.com address at http://mail.yahoo.com


« previous php.dev (#68956) next »