Posted by Jim Moe on 05/05/06 03:39
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".
>> ?>
>> <p><a href="<?php echo $filename; ?>"><?php echo $filename;
>> ?></a></p>
>> <?php
>> }
>> closedir($dir_list);
>> }
>> ?>
>
> I get an "Internal Server Error". Any ideas?
>
What is in your error_log for the error?
--
jmm (hyphen) list (at) sohnen-moe (dot) com
(Remove .AXSPAMGN for email)
[Back to original message]
|