You are here: Re: Weird registy problem in php script « PHP Programming Language « IT news, forums, messages
Re: Weird registy problem in php script

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

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация