2 simple VBA/VB functions that write to specific place in the registry. Here is my library of code on this:
 
GetSetting(App.EXEName, "Properties", strPropertyName)
SaveSetting(App.EXEName, "Properties", strPropertyName, Trim(CStr(varValue)))
Specific place:
HKEY_CURRENT_USER\Software\VB and VBA Program Settings
 
If you issue a GetSetting when none exists, it simply returns an empty string. If you issue a SaveSetting where no entry exists, it simply creates the entry and places the value in the entry. Essentially , these have built in error handling.
 
 


>>> "Richard Davey" <[EMAIL PROTECTED]> 7/30/2007 11:49 AM >>>
Hi,

Monday, July 30, 2007, 7:40:52 PM, you wrote:

> I'm not sure that there's actually anything you'd need to access in
> the server registry (and certainly no registry in Linux if you're
> also transitioning from Windows to Linux). And depending on what the
> ActiveX control your ASP pages accessed actually does, it may be
> better to recreate it in PHP instead of trying to access ActiveX via
> PHP.

I've seen ASP components that required access to the registry in order
to validate they were legal. I.e. the installer of the component wrote
some serial number or something to the registry, which the ASP scripts
checked.

Nasty, but true. Just saying that he may well have a genuine need for
it.

Cheers,

Rich
--
Zend Certified Engineer
http://www.corephp.co.uk

"Never trust a computer you can't throw out of a window"

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


Reply via email to