PHP echo directory contents (as links) not working
<p>I have a php file called download.php which I link to pdf files in a directory. This allows them to appear as links but open 'save as' instead of trying to open in a web page. Trouble is that I can't get the following code to work. It repeats the directory items, with the download.php appended, but I think my php semantics might be slightly wrong! Anyone got any ideas? Perhaps not enough info here to work out, but worth a try: This is the code that sits on the page presenting the various pdf files (ordered by dateLastModified):</p>

<pre><code>&lt;?php 
// *** Folder List Repeater Start 
while ($MeetingMinutes-&gt;canRepeat()) { 
?&gt; 
&lt;?php echo '&lt;p&gt;&lt;a href=\"http://www.duncton.org/download.php?file=login/uploads2/'.$MeetingMinutes-&gt;folderList('name').'&lt;/a&gt;&lt;/p&gt;&lt;br /&gt;'; ?&gt;

 &lt;?php 
 $MeetingMinutes-&gt;MoveNext(); 
} 
$MeetingMinutes-&gt;endRepeater(); 
// *** Folder List Repeater End 
?&gt; 
</code></pre>
