Working on a small concept of taking screenshots of website by url now. By referring lot of websites used wkhtmltoimage. Currently using Mac. Installed wkhtmltoimage successfully, Also tried
wkhtmltoimage www.google.com ggss.png
in terminal. It successfully outputs the screenshot of website. But when i try executing the above command using PHP i dont see the output image or any errors. Below is the code i tried
<?php
$output = shell_exec('wkhtmltoimage http://www.bbc.com bbc.jpg');
?>
Any help would be appreciated