-
August 12th, 2014, 10:56 AM
#1
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.
-
August 16th, 2014, 08:50 PM
#2
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
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|