I'm trying to change a hardcoded variable value to dynamic, but can't seem to get the concatenation correct...
The hardcoded value is...
$token = "../wp-content/themes/mytheme/styles/test/sidebar";
And I'm trying to replace that with...
$token = ".get_bloginfo('template_directory')."styles/test/sidebar";
But its not working the same as when I hardcode the value.
What am I missing?
Here's the rest of the code (the imagegif function never fires with the dynamically generated variable...
$color = imagecolorallocate($img, $info["red"], $info["green"], $info["blue"]);
for ($i = $startPixel-1; $i < $endPixel; $i++)
{
imagesetpixel($img, $i, 0, $color);
}
imagegif($img, $token.'.gif');
}