Posted by chlori on 05/05/06 01:16
Martin Jay 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)
> {
> ?>
> <p><a href="<?php echo $filename; ?>"><?php echo $filename;
> ?></a></p>
> <?php
> }
> closedir($dir_list);
> }
>
> ?>
I get an "Internal Server Error". Any ideas?
Is there some server config stopping it from working or am I doing
something wrong?
--
chlori
Navigation:
[Reply to this message]
|