下面是PHP代码 $dh = opendir('/dev/disk/by-uuid/'); while($file = readdir($dh)){ if(is_link('/dev/disk/by-uuid/'.$file)){ if( realpath('/dev/disk/by-uuid/'.$file) == '/dev/sda1'){ echo 'Found uuid='.$file.PHP_EOL; } } } |
下面是PHP代码 $dh = opendir('/dev/disk/by-uuid/'); while($file = readdir($dh)){ if(is_link('/dev/disk/by-uuid/'.$file)){ if( realpath('/dev/disk/by-uuid/'.$file) == '/dev/sda1'){ echo 'Found uuid='.$file.PHP_EOL; } } } |
我一直认为PHP的运行速度是非常的理想的,尤其是Zend引擎的加速之后。但是PHP仍然有加...