Php is messing up my javascript, button won't open
<p>I have a javascript button on my site that is supposed to popup a URL at random from an external txt file of urls (one per line) but the php keeps messing up the javascript by inserting an extra break. </p>

<pre><code> &lt;a href="#" onClick="javascript:window.open('http://something.com/a.php?u=&lt;?php echo $url ?&gt;', 'yea', 'height=520, width=400, location=no, menubar=no, resizable=no, scrollbars=no, status=no, titlebar = yes, toolbar=no');"&gt;&lt;img src="clic.jpg" border="0"&gt;&lt;/a&gt;

&lt;?php 

$urls = @file('urls.txt');
$num = count($urls)-1;
$url = $urls[rand(0,$num)];

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