Re: pass variable from vbscript to php

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Ashley wrote:
> Just so that I don't start working in the wrong direction, do you mean
> that I can get the same information from the activeX control directly
> from PHP rather than having to do it with vbscript?

Yes, that is exactly what I mean.

>
> I am not much of a coder so any help porting the vbscript to PHP would
> be great.  The code that I am using to get the information from the
> activeX control is:
> <--
> <script type="text/vbscript">
>     for each tree in NWSess1.ConnectedTrees
>         anyTree=tree.FullName
>         anyUser=NWSess1.LoginName(anyTree)
>         output=output+"Tree:"+anyTree+", userID:"+anyUser+vbcrlf
>     next
>     //msgbox output
> </script>
> -->
>

You should be able to translate all of the above code into PHP.  Send us
another message if you have trouble with some part of it.  Exact process
will depend on PHP4/PHP5 though.  Again, refer to this link:
http://php.net/manual/en/ref.com.php

Personally, I'd code this for use in a PHP5 parser.

--
Teach a man to fish...

NEW? | http://www.catb.org/~esr/faqs/smart-questions.html
STFA | http://marc.theaimsgroup.com/?l=php-general&w=2
STFM | http://php.net/manual/en/index.php
STFW | http://www.google.com/search?q=php
LAZY |
http://mycroft.mozdev.org/download.html?name=PHP&submitform=Find+search+plugins

Attachment: signature.asc
Description: OpenPGP digital signature


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux