Tuesday, March 29, 2011

PHP Easter Eggs

,We all like something exciting in day to day life. Enjoy following Easter eggs of PHP. It might be well known for some one but those who not aware, E n  j o y !!!
Add following argument in any php sites and get some funny face of php.

For example, if you  want to check in http://www.example.com and apply like
http://www.example.com/?=PHPE9568F36-D428-11d2-A769-00AA001ACF42 
  1. ?=PHPE9568F36-D428-11d2-A769-00AA001ACF42
    This one is the most interesting, and displays an "easter egg" image of either a rabbit in a house (Sterling Hughes' rabbit, named Carmella), a brown dog in the grass, a black Scottish Terrier dog, a sloppy child hand-drawn, crayon-colored php logo, a guy with breadsticks (looks like pencils or french fries) sticking out of his mouth like a walrus, or a PHP elephant logo. The original dog (Nadia) was Stig Bakken's (Stig is one of the PHP developers); the newer dog is Zeev Suraski's dog (the link goes to his blog entry about the dog, called Scotch or Scottie, that died August 30, 2005); and the guy is Thies Arntzen (the logo image was taken from a picture from the PHP Developers' Meeting that the PHP Group held in January 2000). The six images are shown below. The black dog, colored logo, and rabbit pictures are 10 pixels shorter than the other three images.

    Below are the images for various PHP versions:

    PHP CODER GUY WITH BREADSTICKS (Thies C. Arntzen):
    PHP Version 4.0.0 - 4.2.3



    BROWN DOG IN GRASS (Stig's dog, Nadia):
    PHP Version 4.3.0 - 4.3.10



    BLACK SCOTTISH TERRIER (Zeev's dog, Scotch):
    PHP Versions 4.3.11 - 4.4.6; and 5.0.4 - 5.1.2




    BUNNY (Sterling's rabbit, Carmella):
    PHP Version 5.0.0 - 5.0.3



    COLORED PHP LOGO:
    PHP Version 5.1.3 - 5.2.13



    ELEPHANT PHP LOGO:
    PHP Version 5.3.0 - current

  2. ?=PHPE9568F36-D428-11d2-A769-00AA001ACF42
    This is used by the phpinfo function to display the PHP logo, but works on other PHP pages.

  3. ?=PHPE9568F35-D428-11d2-A769-00AA001ACF42
    This is used by the phpinfo() function to display the Zend logo, but also works on other PHP-parsed pages.

  4. ?=PHPB8B5F2A0-3C92-11d3-A3A9-4C7B08C10000     
    It will open php credit screen with all developer names.


    If you also knowing any more Easter eggs of php or any other technologies , post your valuable comments.

Wednesday, March 9, 2011

Detect Flash using jQuery

In one of my project, I needs to detect flash driver. I searched lot but not found small and staright forward script. Finally, I found jqPlugin from jquery plugin directory.It is very helpful to check various AddOns of browsers. Here is the list of other browser plugin which we can test using this plugin.
  • Flash
  • Silverlight
  • PDF(checks if pdf mimetype is supported not limited to one PDF application)
  • Java
  • Quicktime
  • Windows Media Player
  • Shockwave
  • Realplayer
In below script, you will get code to detect flash player.

 <script type="text/javascript" src="jquery.js"></script>  
 <script type="text/javascript" src="jquery.jqplugin.1.0.2.min.js"></script>  
 <script type="text/javascript">  
 $(document).ready(function() {  
 $("#withflash").hide();  
 $("#noflash").hide();  
 if ($.browser.flash == true)  
   $("#withflash").show ();  
 else  
   $("#noflash").show ();  
  });  
 </script>  
 <div id="withflash">Flash Supported</div>  
 <div id="noflash">Flash Not Supported</div>  



Example
Flash Supported
Flash Not Supported


There was an error in this gadget