I am using the Thumbalizr API for capturing website screenshots.
I am trying to pass a url from a variable into the script below where it currently says "www.google.com"
.
When I try and do $url = "www.google.com";
and pass that to $image->request($url);
it seems to fail and retrieves a screenshot but one that suggests the url was unreachable.
Any what am I doing wrong?
Here is the original php in full working order.
<?php
define ("_THUMBALIZR",1);
require_once("config.inc.php"); // get config and functions
$image=new thumbalizrRequest(); // create object
$image->request("www.google.com"); // send request
if ($image->headers['Status']=="OK" || $image->headers['Status']=="LOCAL") { // if picture is available
$image->output(); //dump binary image data
} else {
print_r($image->headers); // print text result output - you can dump your own "queued" picture here
}
?>