well i know the command shell_exec(), that work like console, just put de
command as paramether. More info in php documentation.
For COM objects
for example,
$word = new COM("word.application") or die("Unable to instantiate
application object");
$wordDocument = new COM("word.document") or die("Unable to
instantiate document object");
$word->Visible = 0;
$wordDocument = $word->Documents->Open($DocumentPath);
$HTMLPath = substr_replace($DocumentPath, 'txt', -3, 3);
$wordDocument->SaveAs($HTMLPath, 3);
$wordDocument = null;
$word->Quit();
$word = null;
this opens a word document and save it as .txt document. there should be
more info in the MSDN documentation.
2009/8/8 Robert Cummings <[email protected]>
> pete123456 wrote:
>
>> hi,
>> im running php on IIS and im trying to evaluate php's capabilities
>> regarding
>> external interfaces.
>> elg. executing .exe, batch files, com objects. is that all possible? does
>> anyone have any good reference where i can find out more about this?
>>
>
> .exe and .bat files should work fine, the do for me. Have you tried? I
> haven't really done anything with com objects.
>
> Cheers,
> Rob.
> --
> http://www.interjinn.com
> Application and Templating Framework for PHP
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>