didou Wed Jul 16 13:08:45 2003 EDT
Modified files:
/phpdoc/en/reference/com/functions class.com.xml
Log:
adding PHP tags in the examples
Index: phpdoc/en/reference/com/functions/class.com.xml
diff -u phpdoc/en/reference/com/functions/class.com.xml:1.2
phpdoc/en/reference/com/functions/class.com.xml:1.3
--- phpdoc/en/reference/com/functions/class.com.xml:1.2 Wed Apr 17 02:36:44 2002
+++ phpdoc/en/reference/com/functions/class.com.xml Wed Jul 16 13:08:44 2003
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="iso-8859-1"?>
-<!-- $Revision: 1.2 $ -->
+<!-- $Revision: 1.3 $ -->
<!-- splitted from ./en/functions/com.xml, last change in rev 1.12 -->
<refentry id="class.com">
<refnamediv>
@@ -63,6 +63,7 @@
<title>COM example (1)</title>
<programlisting role="php">
<![CDATA[
+<?php
// starting word
$word = new COM("word.application") or die("Unable to instanciate Word");
print "Loaded Word, version {$word->Version}\n";
@@ -83,6 +84,7 @@
//free the object
$word->Release();
$word = null;
+?>
]]>
</programlisting>
</example>
@@ -92,6 +94,8 @@
<title>COM example (2)</title>
<programlisting role="php">
<![CDATA[
+<?php
+
$conn = new COM("ADODB.Connection") or die("Cannot start ADO");
$conn->Open("Provider=SQLOLEDB; Data Source=localhost;
Initial Catalog=database; User ID=user; Password=password");
@@ -126,6 +130,8 @@
$rs = null;
$conn = null;
+
+?>
]]>
</programlisting>
</example>
--
PHP Documentation Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php