title: take a screenshot of the current screen and save it as a png image through php
body: <p>Hello all I have an requirement that clients needs screenshot of current webpage when he clicks a button "sceencapture"
   Although i googled for it 
    result come out in this way</p>
  
  <pre><code>$im = imagegrabscreen();
  imagepng($im, "myscreenshot.png");
  imagedestroy($im);
  </code></pre>
  
  <p>in the manual on php.net link  <a href="http://php.net/manual/en/function.imagegrabscreen.php" rel="nofollow">here</a>
  having a note :This function is only available on Windows.
  please help ..</p>