mirror of
https://github.com/sigmasternchen/php-doc-en
synced 2025-03-15 16:38:54 +00:00

git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@337307 c90b9560-bf6c-de11-be94-00142212c4b1
88 lines
3.3 KiB
XML
88 lines
3.3 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<!-- $Revision$ -->
|
|
|
|
<book xml:id="book.com" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink">
|
|
<?phpdoc extension-membership="bundled" ?>
|
|
<title>COM and .Net (Windows)</title>
|
|
<titleabbrev>COM</titleabbrev>
|
|
|
|
<!-- {{{ preface -->
|
|
<preface xml:id="intro.com">
|
|
&reftitle.intro;
|
|
<para>
|
|
COM is an acronym for <literal>Component Object Model</literal>; it is an object orientated
|
|
layer (and associated services) on top of DCE RPC (an open standard) and
|
|
defines a common calling convention that enables code written in any
|
|
language to call and interoperate with code written in any other language
|
|
(provided those languages are COM aware). Not only can the code be
|
|
written in any language, but it need not even be part of the same
|
|
executable; the code can be loaded from a DLL, be found in another
|
|
process running on the same machine, or, with DCOM (Distributed COM), be
|
|
found in another process on a remote machine, all without your code even
|
|
needing to know where a component resides.
|
|
</para>
|
|
<para>
|
|
There is a subset of COM known as OLE Automation which comprises a set of
|
|
COM interfaces that allow loose binding to COM objects, so that they can
|
|
be introspected and called at run-time without compile-time knowledge of
|
|
how the object works. The PHP COM extension utilizes the OLE
|
|
Automation interfaces to allow you to create and call compatible objects
|
|
from your scripts. Technically speaking, this should really be called
|
|
the "<literal>OLE Automation Extension for PHP</literal>", since not all COM objects are OLE
|
|
compatible.
|
|
</para>
|
|
<para>
|
|
Now, why would or should you use COM? COM is one of the main ways to glue
|
|
applications and components together on the Windows platform; using COM
|
|
you can launch Microsoft Word, fill in a document template and save the
|
|
result as a Word document and send it to a visitor of your web site. You
|
|
can also use COM to perform administrative tasks for your network and to
|
|
configure your IIS; these are just the most common uses; you can do much
|
|
more with COM.
|
|
</para>
|
|
<para>
|
|
Starting with PHP 5, this extension (and this documentation) was
|
|
rewritten from scratch and much of the old confusing and bogus cruft has
|
|
been removed. Additionally, we support the instantiation and creation of
|
|
.Net assemblies using the COM interoperability layer provided by
|
|
Microsoft.
|
|
</para>
|
|
<para>
|
|
Please read <link xlink:href="&url.zend.comdotnet;">this article</link>
|
|
for an overview of the changes in this extension in PHP 5.
|
|
</para>
|
|
</preface>
|
|
<!-- }}} -->
|
|
|
|
&reference.com.setup;
|
|
&reference.com.constants;
|
|
&reference.com.error-handling;
|
|
&reference.com.examples;
|
|
&reference.com.com;
|
|
&reference.com.dotnet;
|
|
&reference.com.variant;
|
|
&reference.com.reference;
|
|
|
|
</book>
|
|
|
|
<!-- Keep this comment at the end of the file
|
|
Local variables:
|
|
mode: sgml
|
|
sgml-omittag:t
|
|
sgml-shorttag:t
|
|
sgml-minimize-attributes:nil
|
|
sgml-always-quote-attributes:t
|
|
sgml-indent-step:1
|
|
sgml-indent-data:t
|
|
indent-tabs-mode:nil
|
|
sgml-parent-document:nil
|
|
sgml-default-dtd-file:"~/.phpdoc/manual.ced"
|
|
sgml-exposed-tags:nil
|
|
sgml-local-catalogs:nil
|
|
sgml-local-ecat-files:nil
|
|
End:
|
|
vim600: syn=xml fen fdm=syntax fdl=2 si
|
|
vim: et tw=78 syn=sgml
|
|
vi: ts=1 sw=1
|
|
-->
|
|
|