PHP 读取注册表
程序员文章站
2022-03-04 13:06:57
...
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)