0

Still i cant get any result can you help me?

i want take screenshot in my webpage. well i used code below showed:

<script>
window.ready = function () { alert("It's loaded!");
<?php
$img = imagegrabscreen();
imagepng($img, 'screenshot.png');
?> }
</script>

but it saved black image. what i do for it.?

i got code from as link below:

click this link:

http://www.codedevelopr.com/articles/image-screenshots-php/

finally help me that code as PHP or script to take screenshot and save that image.

if anyone show a way of answer for this problem.

thanks in advance

Yuvaraj
  • 9
  • 5
  • possible duplicate of [Website screenshots using PHP](http://stackoverflow.com/questions/757675/website-screenshots-using-php) – gabe3886 May 13 '15 at 09:27
  • how to integrate that ? – Yuvaraj May 13 '15 at 09:49
  • still i cant get any result – Yuvaraj May 13 '15 at 11:56
  • What have you tried with regards to the html2canvas library? Can you post that code here? – gabe3886 May 13 '15 at 11:59
  • that html2canvas using button action and without script file cant load, but i want taken screenshot after page fully loaded. i m already script files used so again use this scripts files conflict that page so i cant use that. – Yuvaraj May 13 '15 at 12:35

1 Answers1

0

According to this stackoverflow post, the fucntion will only work for XP and lower.

Please check your system preferences and maybe your logs for additional information.

Community
  • 1
  • 1
Tobonaut
  • 2,245
  • 2
  • 26
  • 39
  • here i m using OS as `windows 7` and SERVER as `Apache server` – Yuvaraj May 13 '15 at 10:09
  • That's why I said, that your approch does only work with Windows XP and lower. You may have to find another solution for your feature request. – Tobonaut May 13 '15 at 11:02
  • i cant get any result still now if you have any idea means pls share with me – Yuvaraj May 14 '15 at 04:28
  • Did you read the article? Your approach does not work with Windows7, etc. You may have a look at this project on Github: https://github.com/microweber/screen – Tobonaut May 14 '15 at 09:41