PHP easter-eggs

  toucheatout  2007-02-06 16:51  Web  

Getting a PHP easter-egg

This isn't well-known usually, but PHP features easter-eggs. You can try on a php-enabled website (that has an index.php)
/?=PHPE9568F36-D428-11d2-A769-00AA001ACF42

Which is a neat way of finding out wether a site uses php or not (see below a way of not disclosing this info)

For instance http://www.toucheatout.net/?=PHPE9568F36-D428-11d2-A769-00AA001ACF42 (should be a little dog's picture, the image is dependant on php's version)

Other strings that yield rather undocumented results :
* PHPE9568F34-D428-11d2-A769-00AA001ACF42 ==> PHP logo
* PHPB8B5F2A0-3C92-11d3-A3A9-4C7B08C10000 ==> PHP credits
* PHPE9568F35-D428-11d2-A769-00AA001ACF42 ==> Zend logo

How to disable those PHP easter-eggs

In php.ini, look and replace or add
expose_php = Off

 
Informatics


yro.slashdot.org - Your Rights online


nytimes.com New York Times - International


Informatic headlines