Directory listing
",$file,"
\r\n" ; } closedir( $handle ) ; for ( $i = 0 ; $i < count( $files ) - 1 ; $i++ ) for ( $j = $i+1 ; $j < count( $files ) ; $j++ ) if ( $times[ $i ] < $times[ $j ] ) { $aa = $times[ $i ] ; $times[ $i ] = $times[ $j ] ; $times[ $j ] = $aa ; $bb = $files[ $i ] ; $files[ $i ] = $files[ $j ] ; $files[ $j ] = $bb ; $cc = $sizes[ $i ] ; $sizes[ $i ] = $sizes[ $j ] ; $sizes[ $j ] = $cc ; } echo "
" ; for ( $i = 0 ; $i < count( $files ) ; $i++ ) { echo "
".date( "d M", $times[ $i ] )."
".date( "Y", $times[ $i ] ) ; echo "
",$files[$i],"
" ; echo "
",round( $sizes[$i]/(1024*1024), 2 )," MiB
" ; } echo "
" ; } ?>