欢迎您访问程序员文章站本站旨在为大家提供分享程序员计算机编程知识!
您现在的位置是: 首页  >  后端开发

用PHP读注册表_php基础

程序员文章站 2022-03-21 11:58:19
...
$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");

同样可以用RegWrite方法写入

如果有问题,请参考相关资源:[url]http://support.microsoft.com/default.aspx?scid=kb;en-us;Q221081
[/url] (出处:Viphot)