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 Alvaro G. Vicario on 10/06/86 11:38

*** Boris escribió/wrote (Fri, 27 Jan 2006 18:32:36 +0100):
> Has anyone ever managed to read a Windows registry key in a PHP webpage? I
> installed the PHP extension win32std and saved their sample script from
> http://wildphp.free.fr/wiki/doku.php?id=win32std:index#registry_access as a
> webpage. However when I open the webpage (PHP 5.1.2, Windows Server 2003,
> IIS 6) I get the error message "Warning: Can't open registry key: The
> operation completed successfully." Is registry access only possible in
> Windows executables?

Just speculating... Apache normally runs under the local system account, if
I recall correctly. The chosen registry key may have more restrictive
permissions.

I suggest you first try to run your script from the command line, so it has
the same privileges as your personal user. If that's the issue, it can be
fixed later.


--
-+ Álvaro G. Vicario - Burgos, Spain
++ http://bits.demogracia.com es mi sitio para programadores web
+- http://www.demogracia.com es mi web de humor libre de cloro
--

 

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

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