Re: php external interfaces

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

 



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@xxxxxxxxxxxxx>

> 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
>
>

[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