title: echo in php code is causing problems
body: <p>The <code>echo</code> in the last line seems to be causing problems. However I can't take it out or it'll just print the line directly. How can I rewrite that part? Also, is there anything else wrong with the way the other php functions are written?</p>
  
  <pre><code>$output .= "
              &lt;script src='http://platform.twitter.com/widgets.js'&gt;&lt;/script&gt;
              &lt;a href='http://twitter.com/share' class='twitter-share-button'
                  data-url='". the_permalink() ."'
                  data-via='username'
                  data-text='". the_title() ."'
                  data-count='horizontal'&gt;Tweet
              &lt;/a&gt;
              &lt;iframe src='http://www.facebook.com/plugins/like.php?href=". echo urlencode(get_permalink($post-&gt;ID)) ."&amp;amp;layout=button_count&amp;amp;show_faces=false&amp;amp;width=90&amp;amp;action=like&amp;amp;colorscheme=light' scrolling='no' frameborder='0' allowTransparency='true' style='border:none; overflow:hidden; width:90px; height:20px;'&gt;&lt;/iframe&gt;'";
  </code></pre>