Accessing Windows registry with PHP and DOTNET class

前端 未结 1 1627
攒了一身酷
攒了一身酷 2021-01-21 23:14

This is a simple question: How do I access Windows\' registry with PHP and the DOTNET class? What I want to do is to read a value that another program wrote.

Googling di

相关标签:
1条回答
  • 2021-01-21 23:33

    I found the answer, it works with the COM object:

    $wscript = new COM('WScript.Shell');
    $a = $wscript->RegRead('HKEY_LOCAL_MACHINE\\SOFTWARE\\Microsoft\\etc');
    var_dump($a->value);
    
    0 讨论(0)
提交回复
热议问题