Franky wrote: > hi. > I want to acces (read) the registry on my web server. I use win2k. I try > with COM... but doesn't work... > Somebody know if it is possible? >
It requires Windows scripting host installed and enabled on the server and will ONLY read the registry on the server (a lot of people want to use this to read the client), but it does work. Here's a sample. It happens to pull in the IE proxy server settings. $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"); There is RegWrite method that can be used just like the RegRead method to write keys to the registry as well. J Wynia phpgeek.com -- PHP Windows Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php