CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2
  1. #1
    Join Date
    Nov 2004
    Posts
    187

    Angry php to read information from IIS - IIsWebServer class

    In C# I can use the following to get information from the IIS Server Object
    DirectoryEntry entry = new DirectoryEntry("IIS://" + server + "/W3SVC", "user", "pass");

    In VBS I can use the following
    GetObject("IIS://" & server & "/W3SVC")

    How about in PHP? What would be the equivalent? using a new COM? which one?
    NOTE: I must do this in PHP and not .NET
    In .net this comes from System.DirectoryServices.dll

    I can do the following to get info from Win32_BIOS
    $obj = new COM ( "winmgmts:{impersonationLevel=impersonate}//".$server."/root/CIMV2" );
    $fso = new COM ( "Scripting.FileSystemObject" );
    $obj->ExecQuery("Select * from Win32_BIOS");

    Thanks
    Last edited by rogernem; August 12th, 2014 at 11:11 AM.

  2. #2
    Join Date
    May 2002
    Posts
    10,943

    Re: php to read information from IIS - IIsWebServer class

    Have you tried PHP's LDAP library?
    If the post was helpful...Rate it! Remember to use [code] or [php] tags.

Tags for this Thread

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

Featured