|
PHP 4.x Easter Egg - Author's Picture
NOTE: This has only been tested on Linux with PHP compiled as module for the apache 1.3.x webserver, but should work on other platforms too.
1. open a PHP generated page from your server (or any server with PHP 4.x installed) in your web client. 2. append the string "?=PHPE9568F36-D428-11d2-A769-00AA001ACF42" (with out the quotes) to the url. 3. enjoy the resulting image :)
Pictures and VideosDo you have another one? Send us a picture or video of this Egg! CommentsPhilip Olson writes:
Interested in seeing the source of this egg? It's contained within three files, have a look here :
http://lxr.php.net/ident?i=PHP_EGG_LOGO_GUID
Was added on around April 2000.
30 of 33 people found this comment helpful. Did you?
Philip Olson writes:
If the PHP directive expose_php is off (in php.ini), this "egg" will not show.
27 of 31 people found this comment helpful. Did you?
Bawy writes:
For those who have no idea what PHP is, you can see the image here:
http://www.zend.com/zend/products.php?=PHPE9568F36-D428-11d2-A769-00AA001ACF42
It is totally funny!!!
24 of 34 people found this comment helpful. Did you?
Bill writes:
This picture appears on April 1st when a file containing the following directive is run:
13 of 16 people found this comment helpful. Did you?
dttvb writes:
Make a file, in the file contain this:
Run this file in webserver
Look at first line
PHP Version x.y.z ................ PHP Logo
That image point to ?=PHPE9568F34-D428-11d2-A769-00AA001ACF42
Look at the first grey box
This program makes use of the Zend Scripting Language Engine:
Zend Engine v1.3.0, Copyright (c) 1998-2004 Zend Technologies ............... Powered by Zend logo
That image point to ?=PHPE9568F35-D428-11d2-A769-00AA001ACF42
Under that link, have a link saying PHP Credit,
That link point to ?=PHPB8B5F2A0-3C92-11d3-A3A9-4C7B08C10000
That's why these are here, some of them shall not egg. They're here just to work with phpinfo();
Take a look at php-source/ext/standard/info.h
#define PHP_LOGO_GUID
"PHPE9568F34-D428-11d2-A769-00AA001ACF42"
#define PHP_EGG_LOGO_GUID
"PHPE9568F36-D428-11d2-A769-00AA001ACF42"
#define ZEND_LOGO_GUID
"PHPE9568F35-D428-11d2-A769-00AA001ACF42"
#define PHP_CREDITS_GUID
"PHPB8B5F2A0-3C92-11d3-A3A9-4C7B08C10000"
11 of 13 people found this comment helpful. Did you?
EggMaster2000 writes:
Nice egg!!! This is awesome, but the URLS posted are outdated. This is probably because there are new and better php versions, so the sites probably moved. There still are some sites which run on 4.0 though. To view the funny image go here:
http://www.phpfreaks.com/error.php?=PHPE9568F36-D428-11d2-A769-00AA001ACF42
To view the logos, go here:
http://www.phpfreaks.com/error.php?=PHPE9568F34-D428-11d2-A769-00AA001ACF42
http://www.phpfreaks.com/error.php?=PHPE9568F35-D428-11d2-A769-00AA001ACF42
And finally, to view the credits (boring and not quite an eegg - its in the documentation) go here:
http://www.phpfreaks.com/error.php?=PHPB8B5F2A0-3C92-11d3-A3A9-4C7B08C10000
Of course, you can view the egg on any php website you like, you just have to add the ?=PHPB8... part to it.
Have fun searching for other cool eggs!
9 of 11 people found this comment helpful. Did you?
CoolGui writes:
This works with PHP4 for Windows as well. You would think someone would find this whole routine in the source.
6 of 10 people found this comment helpful. Did you?
User24 writes:
The only truly hidden image is the "?=PHPE9568F36-D428-11d2-A769-00AA001ACF42" one - the rest are called from the page produced by the phpinfo() function, which actually works on any day of the year.
5 of 8 people found this comment helpful. Did you?
Razor's Edge UK writes:
There are a total of 3 different pictures hidden in PHP V4+
You can use this on any site that has PHP.
http://www.flight1721.co.uk/index.php?=PHPE9568F34-D428-11d2-A769-00AA001ACF42
http://www.flight1721.co.uk/index.php?=PHPE9568F35-D428-11d2-A769-00AA001ACF42
http://www.flight1721.co.uk/index.php?=PHPE9568F36-D428-11d2-A769-00AA001ACF42
In fact if you see a URL ending in .php add ?=PHPE9568F34-D428-11d2-A769-00AA001ACF42 or ?=PHPE9568F35-D428-11d2-A769-00AA001ACF42 or ?=PHPE9568F35-D428-11d2-A769-00AA001ACF42 to the end of the URL and see for yourself.
Works on all platforms as they have the same actual source code!
9 of 18 people found this comment helpful. Did you?
Philip writes:
I'm no C wizard, but I believe this image is shown in stead of the php logo on top of the phpinfo() page on march 1st.
Look in ext/standard/info.c line 166
6 of 13 people found this comment helpful. Did you?
Razor's Edge UK writes:
Also ...
http://www.flight1721.co.uk/index.php?=PHPB8B5F2A0-3C92-11d3-A3A9-4C7B08C10000
shows the list of credits for PHP.
3 of 10 people found this comment helpful. Did you?
hias writes:
the id for the image changes every version - but to make it easier, you could write yourself a tiny php module containing a funktion like this:
function_entry easter_functions[] = {
PHP_FE(easter_egg, NULL)
{NULL, NULL, NULL} /* Must be the last line in easter_ffunctions[] */
};
PHP_FUNCTION(easter_egg)
{
// zend_alter_ini_entry("expose_php", sizeof("expose_php"), "On", 2, PHP_INI_SYSTEM, PHP_INI_STAGE_ACTIVATE);
php_info_logos(PHP_EGG_LOGO_GUID);
}
(the rest can be used instantly from ext_skel) or just put it in your usual dev-helper module.
1 of 6 people found this comment helpful. Did you?
|
||||||||