HIMSISFO

Himpunan Mahasiswa Sistem Informasi Universitas Mercubuana


    script open directory

    Share
    avatar
    ryback.dc
    Mahasiswa pendatang
    Mahasiswa pendatang

    Male Jumlah posting : 4
    Age : 27
    Fakultas : ilmu komputer
    Jurusan : sistem informasi
    Interest in : hhhhhhhh..........
    Registration date : 26.01.09

    script open directory

    Post by ryback.dc on Tue Mar 31, 2009 3:45 am

    /* isi_dir.php */

    // direktori aktif
    $curr_dir = "./";
    echo "Real Path: " . realpath($curr_dir) . "
    ";
    echo "Total space: " .disk_total_space($curr_dir). " byte ";

    // Membuka direktori
    $dir = opendir($curr_dir);
    echo "";
    echo "";

    while ($file = readdir($dir)) {
    if (is_dir($file)) {
    echo "
    ";
    } else {
    echo "";
    }
    }
    echo "[table border="1"][tr][td]Nama[/td][td]Ukuran[/td][td]Tipe[/td][/tr][tr][td]$file[/td][td] [/td][td]" .filetype($curr_dir.$file). "[/td][/tr][tr][td]$file[/td][td]" .filesize($curr_dir. $file). "
    [/td][td]".filetype($curr_dir.$file)."[/td][/tr][/table]";

    // menutup direktori
    closedir($dir);

    ?>


    slmat mencoba seneng

      Waktu sekarang Tue Dec 11, 2018 11:33 pm