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