Generate Random Youtube URLs from Text File & Embed with PHP
<p>My goal is to have a widget on  a sidebar of my website that generates a random video on every refresh. </p>

<p>I have created a text file that has a list of (50) youtube URLS and I'm using PHP to pull a random line from that text folder. </p>

<p>However I keep getting a syntax error on the return line (line 2) of this and can't figure out why. What am I missing, and(or) is there a more effective way around this code?</p>

<pre><code>&lt;?  

$lines = file('code.txt');
      return "&lt;iframe width="250151" height="315" src="$lines[array_rand($lines)]" frameborder="0" allowfullscreen&gt;&lt;/iframe&gt;";

?&gt;
</code></pre>
