PLSCIS PLP - 2013-01-11 19:31:23 -
In reply to message 1 from Darren Conyard
Hi Darren,
In sample code file webshots_test.php, second line of code is:
$img = "/var/www/images/img.png";
this is the path where image will be created and stored.
Also, you will find code:
@ file_put_contents($img_path, $img);
in "webshots.php" file, there you can remove the "@" symbol from front and it will show you if any error while creating file.
To debug, in "webshots.php" there is code:
$img = $this->post_to_url($url, $params);
// print_r($img); exit;
uncomment the print_r statement to know what you get from the api call.
Hope this helps you to get through the issue.