On Tue, July 31, 2007 4:54 pm, \"Crash\" Dummy wrote:
> To answer everyone's curiosity as to why I want to access the
> registry, I am
> working on my home computer with a dynamic IP, and I need to know what
> it is so
> I can modify my httpd.conf (or hosts) file, if necessary.
LOL
Take a look at
> You might use http://www.php.net/reserved.variables "SERVER_ADDR"
> to get the address of the host you are running under if you wanted
to
> access it from PHP only.
Ah, but there is a catch. If you looked at my snapshot, you saw that
there are two addresses, and the server address will not neces
On 7/31/07, Crash Dummy <[EMAIL PROTECTED]> wrote:
>
> > Hope this isn't overkill but it is a module (read "COM", or "VBA
> module")
> > to manipulate the registry:
>
> "Overkill" is a massive understatement. :-)
No doubt.
To answer everyone's curiosity as to why I want to access the registry,
> Hope this isn't overkill but it is a module (read "COM", or "VBA module")
> to manipulate the registry:
"Overkill" is a massive understatement. :-)
As noted elsewhere in this thread, I got what I wanted by using the PHP "exec"
command to execute a VB script, which has all the registry access I
Hope this isn't overkill but it is a module (read "COM", or "VBA module") to manipulate the registry:
Option Compare DatabaseOption Explicit
'' Created by E.Spencer - This code is public domain.''Security Mask constantsPublic Const READ_CONTROL = &H2Public Const SYNCHRONIZE = &H1000
2 simple VBA/VB functions that write to specific place in the registry. Here is my library of code on this:
GetSetting(App.EXEName, "Properties", strPropertyName)
SaveSetting(App.EXEName, "Properties", strPropertyName, Trim(CStr(varValue)))
Specific place:
HKEY_CURRENT_USER\Software\VB a
On Mon, July 30, 2007 1:32 pm, Jay Blanchard wrote:
> [snip]
> I want to convert some ASP pages to PHP to go along with a transition
> from IIS
> to Apache. One of the ASP script functions involves reading data from
> the
> Windows registry. How does one read from the registry with PHP?
> [/snip]
>
> I can't think of anything that a PHP app is going to need access to
> the registry for, so I'm trying to verify that there actually is a need
> for him to access the registry and/or use ActiveX via PHP. I'm
> guessing that he doesn't need to at all.
I don't _need_ it for anything in the scripts
Yeah, that could be one thing that the ASP/ActiveX combo need to access the
registry for.. but if he's replacing ASP with PHP and if the ActiveX control
doesn't do anything he can't re-create in PHP, then there's no need to verify
that anything relating to ASP or ActiveX is registered and genui
I'm assuming you are intending to read the web server registry for
configuration purposes, not the client's registry. Look at the section
on COM in the manual.
Andrew
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Hi,
Monday, July 30, 2007, 7:40:52 PM, you wrote:
> I'm not sure that there's actually anything you'd need to access in
> the server registry (and certainly no registry in Linux if you're
> also transitioning from Windows to Linux). And depending on what the
> ActiveX control your ASP pages acces
> "Crash": The COM extension (http://php.net/com) should let you do that
> in essentially the same way ASP does.
Thank you. More stuff to confuse me! :-)
--
Crash
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
> PHP is server-side and cannot read client side info. You would need to
> use something client-side, like JavaScript. JavaScript cannot read the
> registry either. It's a security thing.
ASP is also server side and the registry I want to read is on the server
platform. I am not trying to read the
I'm not sure that there's actually anything you'd need to access in the server
registry (and certainly no registry in Linux if you're also transitioning from
Windows to Linux). And depending on what the ActiveX control your ASP pages
accessed actually does, it may be better to recreate it in P
Jay Blanchard wrote:
[snip]
I want to convert some ASP pages to PHP to go along with a transition
from IIS
to Apache. One of the ASP script functions involves reading data from
the
Windows registry. How does one read from the registry with PHP?
[/snip]
PHP is server-side and cannot read client s
[snip]
I want to convert some ASP pages to PHP to go along with a transition
from IIS
to Apache. One of the ASP script functions involves reading data from
the
Windows registry. How does one read from the registry with PHP?
[/snip]
PHP is server-side and cannot read client side info. You would nee
I want to convert some ASP pages to PHP to go along with a transition from IIS
to Apache. One of the ASP script functions involves reading data from the
Windows registry. How does one read from the registry with PHP?
Also, is it possible to use ActiveX objects with PHP? The above mentioned script
17 matches
Mail list logo