title: Use contents of .txt file in marquee
body: <p>I'm trying to get  to use the contents of a local .txt file. In other words, make the contents of the text file (one line) to scroll across the page. I'm pretty sure what I've done should work but it doesn't, where have I gone wrong? Here's my code:</p>
  
  <pre><code>&lt;head&gt;
  &lt;?php
  $myFile = "msg.txt";
  $fh = fopen($myFile, 'r');
  $message = fgets($fh);
  fclose($fh);
  ?&gt;
  &lt;/head&gt;
  &lt;body&gt;
  &lt;div id="msg"&gt;
  &lt;font size=+3 face="arial black" color=white&gt;&lt;marquee width="1280" style="position: absolute; top: 721px; left: 0px;"&gt; &lt;?=$message?&gt; &lt;/marquee&gt;&lt;/font&gt;
  &lt;/div&gt;
  &lt;/body&gt;
  </code></pre>
  
  <p>I have saved the file as .php but no text comes up. If I put a word into the marquee (instead of "?=$message?") it scrolls across the page just fine.</p>
  
  <p>Please say someone can fix this, its doing my head in :S
  Cheers, Tom.</p>