Parse error in PHP file when echoing javascript
<blockquote>
  <p><strong>Possible Duplicate:</strong><br>
  <a href="http://stackoverflow.com/questions/12769982/reference-what-does-this-error-mean-in-php">Reference - What does this error mean in PHP?</a>  </p>
</blockquote>



<p>I keep on getting a "Parse error: syntax error, unexpected '(', expecting T_VARIABLE or '$' in..."</p>

<p>Here's the line thats causing the problem, not sure whats going on here?</p>

<pre><code>$text = "&lt;script&gt;window.setInterval(function(){$('#liveData').load('liveUpdate.php');}, 1000);&lt;/script&gt;";
</code></pre>

<p>Thanks in advance</p>
