Answer the question
In order to leave comments, you need to log in
Screenshot and email?
Hello!
The task is as follows:
When you click on the button, you need to take a screenshot of the user's screen and send it to the mail.
Is it possible to implement this? Prompt in what direction to dig?
Answer the question
In order to leave comments, you need to log in
https://html2canvas.hertzen.com/
www.jquerybyexample.net/2013/08/take-webpage-scree...
To take a screenshot of a website:
function screen($url, $width, $height, $widthImg)
{
$screen="http://mini.s-shot.ru/".$width."x".$height."/JPEG/".$widthImg."/Z100/?".$url;
$screen=file_get_contents($screen);
$name = sha1(md5($url.date('H:i:s')));
$newFile = "screens/".$name."-".$widthImg.".jpg";
file_put_contents($newFile, $screen);
$file = $newFile;
return $file;
}
echo screen("https://toster.ru/", "1920", "1080", "1920");
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question