Results 1 to 5 of 5

Thread: read registry

  1. #1

    Thread Starter
    Addicted Member
    Join Date
    Dec 2004
    Posts
    168

    read registry

    Is it possible to read from the registry with PHP?

  2. #2
    <?="Moderator"?> john tindell's Avatar
    Join Date
    Jan 2002
    Location
    Brighton, UK
    Posts
    1,099

    Re: read registry

    Code:
    Set WshShell = Wscript.CreateObject("Wscript.Shell")
    strIconSetting = WshShell.RegRead("HKCU\Control Panel\Desktop\IconSpacing")
    WScript.Echo strIconSetting
    Reads the registry from a VB script

    So...
    PHP Code:
    $value = new COM("Wscript.Shell");
    $value $WshShell->RegRead("HKCU\key\value");
    print 
    $value
    Should work.
    Last edited by john tindell; Jul 19th, 2005 at 05:16 PM.

  3. #3
    VBA Nutter visualAd's Avatar
    Join Date
    Apr 2002
    Location
    Ickenham, UK
    Posts
    4,906

    Re: read registry

    Remember that the above code will read the registry on the server and not the client.
    PHP || MySql || Apache || Get Firefox || OpenOffice.org || Click || Slap ILMV || 1337 c0d || GotoMyPc For FREE! Part 1, Part 2

    | PHP Session --> Database Handler * Custom Error Handler * Installing PHP * HTML Form Handler * PHP 5 OOP * Using XML * Ajax * Xslt | VB6 Winsock - HTTP POST / GET * Winsock - HTTP File Upload

    Latest quote: crptcblade - VB6 executables can't be decompiled, only disassembled. And the disassembled code is even less useful than I am.

    Random VisualAd: Blog - Latest Post: When the Internet becomes Electricity!!


    Spread happiness and joy. Rate good posts.

  4. #4

    Thread Starter
    Addicted Member
    Join Date
    Dec 2004
    Posts
    168

    Re: read registry

    Is it possible to read the registry from the client?

  5. #5
    <?="Moderator"?> john tindell's Avatar
    Join Date
    Jan 2002
    Location
    Brighton, UK
    Posts
    1,099

    Re: read registry

    The only way to read the registry from the client machine is to have a client install on the clients computer which communicates with the server. As far as i know there is a "hack" that can read the registry from an ActiveX control but they wont work with Fx or Opera.
    What information do you want to read? Could you use cookies instead?

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width