PHP 读取注册表

 

Example on how to read a registry value:

<?php
  $shell = &new COM ( 'WScript.Shell' );
  var_dump ( $shell -> regRead ( 'HKEY_CURRENT_USER\Environment\TEMP' ));
?>

(outputs string(39) "%USERPROFILE%\Lokale Einstellungen\Temp" on my system)
 

你可能感兴趣的:(PHP)