Re: php external interfaces
| From: | Daniel Echalar | Date: | Sat, 08 Aug 2009 18:00:57 +0000 |
| Subject: | Re: php external interfaces | ||
| References: | 1 2 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-296489@lists.php.net to get a copy of this message | ||
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 <robert@interjinn.com>
> 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
>
>