PHP获取主机盘符

    <?php
    $obj = new COM('Scripting.FileSystemObject');
    $DriveTypeDB = array(0 => 'Unknow',1 => 'Removable',2 => 'Fixed',3 => 'Network',4 => 'CDRom',5 => 'RAM Disk');
    foreach($obj->Drives as $drive) {
    echo ' '.$DriveTypeDB[$drive->DriveType].'('.$drive->Path.')';
    }
    ?>

    转载请注明:RAIN MAN » PHP获取主机盘符

    喜欢 2
标签:

还没有人抢沙发呢~