Re: Using COM

From: Date: Sun, 30 Sep 2001 21:21:43 +0000
Subject: Re: Using COM
References: 1 2 3 4 5  Groups: php.windows 
Request: Send a blank email to php-windows+get-9625@lists.php.net to get a copy of this message
"David Broker" <php@warpedweb.net> wrote in message news:20010929012745.1977.qmail@pb1.pair.com... > Rich, > Microsoft claims (in the IIS help) that this is an object which you can access > with any language which supports COM. > > In the VBscript found on any Win2K server it is called like this: > varname = GetObject("IIS://localhost/w3scv") > > So I'm assuming that IIS://localhost/w3scv is an object. > > My problem was that I could not access that object, as that format (the > "IIS://")is not supported in the non-dev releases. > > I will (probably) be running it on a local machine so I shouldn't have a > problem there. > > Regards, > David Right mate, Ive had a quick search on Google and found this.... Under Foxpro - you access it like loIIS=CREATE("wwIISAdmin.IIS4Config") IF loIIS.ConnectPath("IIS://LOCALHOST/W3SVC/1/ROOT") ? loIIS.GetValue("AuthBasicIsolated") ? loIIS.GetValue("DefaultDoc") ? loIIS.m_oIISObj.Stop() * ? loIIS.m_oIISObj.Start() ELSE wait window "Unable to retrieve path..." ENDIF So I would suspect that the interface is "wwIISAdmin.IIS4Config" or something like that. Thus if Im correct you would need something like <?php $IIS_Admin = COM( "wwIISADmin.IIS4Config" ); if( $IIS_Admin->ConnectPath( "IIS://Localhost/W3SVC/1/ROOT" ) ) { .... you get the idea. Hope that helps. Rich

« previous php.windows (#9625) next »