发新话题
打印

用PHP读注册表

用PHP读注册表

用PHP如何读取注册表的信息
我在网上找了段代码
但是报错了
那位能教教我

网上找的代码:
[Copy to clipboard]
PHP CODE:
$shell = new COM("Wscript.Shell") or die("This thing requires Windows scripting Host");
$registry_proxystring $shell->RegRead
("HKEY_CURRENT_USER\\Software\\Microsoft\\Windows\\CurrentVersion\\Internet Settings\\ProxyServer");

TOP

$str_reg_path = $_ENV['windir']."\\system32\\reg.exe";
$str_reg_key = "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Run";
exec($str_reg_path.' query "' . $str_reg_key.'"', $arr_output, $int_return);
print_r($arr_output);

我在网上又找了段代码
注册信息读是可以读的出来
看了半天也看不懂
但是谁能给我讲讲是怎么意思

TOP

PHP操纵注册表
高手看看吧
交流QQ群2:16142493
智能手机软件下载
PHP新手不可错过一帖
PHP新手如何获得积分
论坛需要你,我们大家需要你!

TOP

发新话题