用PHP读注册表

  • A+
所属分类:PHP编程
  1. $shell = new COM("WScript.Shell") or die("This thing requires Windows Scripting Host");
  2. $registry_proxystring = $shell->RegRead
  3. ("HKEY_CURRENT_USER\\Software\\Microsoft\\Windows\\CurrentVersion\\Internet Settings\\ProxyServer");

同样可以用RegWrite方法写入