Random selection of testimonials
<p>$message doesn't seem to be displaying anything.</p>

<p>I have the following code:</p>

<pre><code>&lt;?php
$files = glob("testimonials/*.txt");
$filename = $files[rand(0, count($files)-1)];
$lines = file($filename);
$author = array_shift($lines);
$message = explode("", $lines);
?&gt;

&lt;h1&gt;Testimonial&lt;/h1&gt;
&lt;p&gt;&lt;b&gt;Author:&lt;/b&gt; &lt;?php echo $author; ?&gt;&lt;/p&gt;
&lt;?php echo $message; ?&gt;
</code></pre>

<p>In my testimonials folder, I have text files with author name one the first line, then the message on the lines directly under that. </p>

<p>What am I missing here to make this work correctly?</p>
