You are here: Re: Windows registry access in PHP webpage possible? « PHP Programming Language « IT news, forums, messages
Re: Windows registry access in PHP webpage possible?

Posted by Boris on 10/09/35 11:38

"Alvaro G. Vicario" <webmaster@NOSPAMdemogracia.com>,
news:zxxo0gj4alh1$.3hp1m1zbr8ep$.dlg@40tude.net...
> *** Boris escribiσ/wrote (Sat, 28 Jan 2006 14:28:04 +0100):
>> Thanks, I tried that. It works! Actually I would agree that it is a
>> permission issue but see above. According to
>> http://support.microsoft.com/kb/163846/en-us the registry keys of the
>> SYSTEM
>> account are stored at \HKEY_USERS\S-1-5-18. When I check
>> "\HKEY_USERS\S-1-5-18\Control Panel" the SYSTEM account does have
>> read-access. I would expect the PHP webpage to be able to find and read
>> this
>> key under \HKEY_CURRENT_USER?
>
> Please read my second message. IIS runs under its own user, typically
> called IUSR_MACHINENAME.

I created now a new application pool for the virtual directory which
contains the PHP script and explicitly set the user account to NETWORK
SERVICE. This is the same user account used by ASP.NET scripts. While the
ASP.NET script can access the registry the PHP script still returns the same
error. Meanwhile I also contacted one of the developers of the PHP extension
and asked him if he ever ran his sample script succesfully from a webpage.
If I get an answer I'll forward it.

Boris

 

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

Π‘Π°ΠΉΡ‚ ΠΈΠ·Π³ΠΎΡ‚ΠΎΠ²Π»Π΅Π½ Π² Π‘Ρ‚ΡƒΠ΄ΠΈΠΈ Π’Π°Π»Π΅Π½Ρ‚ΠΈΠ½Π° ΠŸΠ΅Ρ‚Ρ€ΡƒΡ‡Π΅ΠΊΠ°
ΠΈΠ·Π³ΠΎΡ‚ΠΎΠ²Π»Π΅Π½ΠΈΠ΅ ΠΈ ΠΏΠΎΠ΄Π΄Π΅Ρ€ΠΆΠΊΠ° Π²Π΅Π±-сайтов, Ρ€Π°Π·Ρ€Π°Π±ΠΎΡ‚ΠΊΠ° ΠΏΡ€ΠΎΠ³Ρ€Π°ΠΌΠΌΠ½ΠΎΠ³ΠΎ обСспСчСния, поисковая оптимизация