Re: Re: Using COM
| From: | Alain Samoun | Date: | Sun, 30 Sep 2001 22:00:20 +0000 |
| Subject: | Re: Re: Using COM | ||
| References: | 1 2 3 4 5 6 | Groups: | php.windows |
| Request: | Send a blank email to php-windows+get-9626@lists.php.net to get a copy of this message | ||
Except that it should be:
$IIS_Admin = new COM( "wwIISADmin.IIS4Config" );
;0 -----------^
Alain
On Sun, Sep 30, 2001 at 10:21:43PM +0100, Crawley wrote:
>
> "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
>
>
>
>
> --
> PHP Windows Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: php-windows-unsubscribe@lists.php.net
> For additional commands, e-mail: php-windows-help@lists.php.net
> To contact the list administrators, e-mail: php-list-admin@lists.php.net