D
D
Dmitry2016-05-05 18:45:07
Web development
Dmitry, 2016-05-05 18:45:07

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

2 answer(s)
D
DevMan, 2016-05-05
@bsloungespa

https://html2canvas.hertzen.com/
www.jquerybyexample.net/2013/08/take-webpage-scree...

A
Abror Jakey, 2016-05-05
@ayyjay

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 question

Ask a Question

731 491 924 answers to any question