Posted by Michael Austin on 01/14/06 06:37
a wrote:
> Thanks for replying.
>
>
>>What's the path to the registery key? The HKEY_CURRENT_USER hive is
>>specific to the current logged-in user.
>
>
> The path is HKEY_CURRENT_USER\Software\...
>
>
>
>>The one that you have is going
>>to be different from the one the web-server has.
>>
> Could you please clarify this - I am not sure I understand what you mean.
In the context of the web-server "service", it runs as username SYSTEM or
[someotheruser] and is therefore not you. I would personnally stay away from
anything like this that is specific to one platform.. what if you want to move
this to a REAL O/S - your registry stuff would break. Build it using a MySQL
database or even an XML data file so you can move it to any platform - and
would be much simpler to manage.
>
> I don't know if this is relevant, but the external application is supposed
> to read some registry values that are also set externally, and not by the
> php script. The php script passes information to the process via the command
> line and eventually files on disk, but not through the registry.
>
> A
>
>
--
Michael Austin.
Consultant
[Back to original message]
|