Posted by Chung Leong on 01/14/06 02:08
a wrote:
> Hi everybody,
>
> I have the following setup:
> - Windows XP Pro with SP2 and all updates installed
> - Apache 2.054
> - PHP 4.4.x (not sure if 1 or 2)
>
> My app consists in a html form page which sends its content to a php script.
> The php script then runs an external process using exec (or passthru). This
> is where the problems start.
>
> This process reads some information stored in the registry. When I run it
> directly from the command line, this process works fine and the info gets
> retrieved from the registry. When I run it from the php script though, it
> fails somewhere in the registry access code, and I'm not sure whether it is
> an Apache or php issue.
>
> Could it be that some php (or maybe apache) security settings that are
> inherited by my process forbid registry access?
>
> I would really appreciate any ideas that will help me solve this issue.
>
> Thanks,
>
> A
What's the path to the registery key? The HKEY_CURRENT_USER hive is
specific to the current logged-in user. The one that you have is going
to be different from the one the web-server has.
[Back to original message]
|