Is it possible to read from the registry with PHP?
Printable View
Is it possible to read from the registry with PHP?
Reads the registry from a VB scriptCode:Set WshShell = Wscript.CreateObject("Wscript.Shell")
strIconSetting = WshShell.RegRead("HKCU\Control Panel\Desktop\IconSpacing")
WScript.Echo strIconSetting
So...
Should work.PHP Code:$value = new COM("Wscript.Shell");
$value = $WshShell->RegRead("HKCU\key\value");
print $value;
Remember that the above code will read the registry on the server and not the client. ;)
Is it possible to read the registry from the client?
The only way to read the registry from the client machine is to have a client install on the clients computer which communicates with the server. As far as i know there is a "hack" that can read the registry from an ActiveX control but they wont work with Fx or Opera.
What information do you want to read? Could you use cookies instead?