title: Recurly.js - PHP Client - Digital Signature
body: <p>I am trying to host forms for a recurly implementation and use PHP to create the signature. I have followed the docs, searched for examples and copied the code and tried every combination I can think of but I can not figure out what the issue is - on my PHP page the form appears but at the top I am seeing part of the PHP code instead of the code executing.</p>
  
  <p>My code:</p>
  
  <pre><code>&lt;?php
  require_once('/lib/recurly.php');
  
  // Required for the API
  Recurly_Client::$subdomain = 'myactualsubdomain'
  Recurly_Client::$apiKey = 'removedmyapiforsecurity';
  Recurly_js::$privateKey = 'removedmyprivatekeyforsecurity';
  
  $signature = Recurly_js::sign(array(
  'account'=&gt;array('account_code'=&gt;'aaa1234588'), 
   'subscription' =&gt; array( 
   'plan_code' =&gt; 'innovator',
    'currency'=&gt;'USD', 
      )));
  ?&gt;
  
  &lt;html lang="en"&gt;
  &lt;head&gt;
  &lt;meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /&gt;
  &lt;title&gt;Innovator Yearly Subscription&lt;/title&gt;
  &lt;html&gt;
    &lt;head&gt;
    &lt;link rel="stylesheet" href="/css/recurly.css" type="text/css" /&gt;
  &lt;script src="/js/jquery.js"&gt;&lt;/script&gt;
  &lt;script src="/js/recurly.js"&gt;&lt;/script&gt;
      &lt;script&gt;
      $(function(){
        Recurly.config({
      subdomain: 'supportpay'
      , currency: 'USD' // GBP | CAD | EUR, etc...
    });
  
    Recurly.buildSubscriptionForm({
      target: '#recurly-subscribe',
      planCode: 'innovator',
      successURL: 'success.php',
      signature: '$signature',
  distinguishContactFromBillingInfo: false,
  collectCompany: false,
  collectContact: true,
  termsOfServiceURL: 'http://supportpay.com/contact/terms-of-use/',
  acceptPaypal: false,
  acceptedCards: ['mastercard',
                  'discover',
                  'american_express',
                  'visa'],
    });
  
  });
      &lt;/script&gt;
      &lt;/head&gt;
    &lt;body&gt;
      &lt;h1&gt;Subscribe to Plan&lt;/h1&gt;
      &lt;h2&gt;Plan Code: Innovator - Yearly5&lt;/h2&gt;
      &lt;div id="recurly-subscribe"&gt;
      &lt;/div&gt;
    &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>
  
  <p>When I use that code and run the php the browser the form / page render correctly except at the top there is this code </p>
  
  <pre><code>array('account_code'=&gt;'aaa1234588'),'subscription' =&gt; array( 'plan_code' =&gt;'innovator', 'currency'=&gt;'USD', ))); ?&gt; 
  </code></pre>
  
  <p>Can someone please shed some light on what I am doing wrong here?</p>
  
  <p>Thank you!</p>