listing of the files instead of opening indexfile

Discussion in 'Install/Configuration' started by _harri_, Feb 26, 2004.

  1. _harri_

    _harri_ New Member


    again i have a question =)
    is it possible to configure lsws in a way, that the files are listed up in the webbrowser ?

  2. harrinp1

    harrinp1 New Member

    You can use a simple script like this saved as index.php to do the job:-

    while ( $current_file=readdir($dir_handle) ) {
    if (ereg("^\.",$current_file)) continue; # skip dot files
    print "
    <A HREF=$current_file>$current_file</A>";
    if ( is_file($current_file) )
    if ( is_dir($current_file) )



Share This Page