Re: list files from directory on a site



On Thu, 04 May 2006 17:39:32 -0700, Jim Moe
<jmm-list.AXSPAMGN@xxxxxxxxxxxxxx> wrote:

chlori wrote:
If you can run PHP files on your server you could use something like
this:

<?php
$dir=""; // Directory where files are stored
if ($dir_list = opendir($dir)) {
while(($filename = readdir($dir_list)) !== false) {

That should be "readdir($dir_list)) != false".

No !!! The original is correct.

--
Steven
.