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)
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)