cvs: peardoc /en/package/php/php-compat intro.xml
| From: | Aidan Lister | Date: | Fri, 04 Jun 2004 03:22:30 +0000 |
| Subject: | cvs: peardoc /en/package/php/php-compat intro.xml | ||
| Groups: | php.pear.doc | ||
| Request: | Send a blank email to pear-doc+get-4187@lists.php.net to get a copy of this message | ||
aidan Thu Jun 3 23:22:30 2004 EDT
Modified files:
/peardoc/en/package/php/php-compat intro.xml
Log:
Reworded
http://cvs.php.net/diff.php/peardoc/en/package/php/php-compat/intro.xml?r1=1.2&r2=1.3&ty=u
Index: peardoc/en/package/php/php-compat/intro.xml
diff -u peardoc/en/package/php/php-compat/intro.xml:1.2
peardoc/en/package/php/php-compat/intro.xml:1.3
--- peardoc/en/package/php/php-compat/intro.xml:1.2 Sun May 30 08:35:30 2004
+++ peardoc/en/package/php/php-compat/intro.xml Thu Jun 3 23:22:30 2004
@@ -1,6 +1,5 @@
-
<?xml version="1.0" encoding="ISO-8859-1" ?>
-<!-- $Revision: 1.2 $ -->
+<!-- $Revision: 1.3 $ -->
<refentry id="package.php.php-compat.intro">
<refnamediv>
<refname>Introduction</refname>
@@ -13,6 +12,9 @@
<para>
PHP_Compat provides missing functionality in the form of functions and constants for older versions
of PHP.
PHP_Compat is very easy to use. To load a function, e.g.
<emphasis>file_get_contents()</emphasis> added in PHP5, add the code:
+
+ <example>
+ <title>Include a component</title>
<programlisting role="php">
<![CDATA[
require_once 'PHP/Compat.php';
@@ -21,20 +23,20 @@
]]>
</programlisting>
-OR
+Or, if you don't wish to use the class, simply:
<programlisting role="php">
<![CDATA[
require_once 'PHP/Compat/Function/file_put_contents.php';
]]>
</programlisting>
+ </example>
The function is then ready to use like you would normally.
</para>
<para>
- <ulink url="http://aidan.dotgeek.org/wiki/index.php?area=PHP_Compat">
- More online documentation is available here</ulink>
+ PHP_Compat is designed for ease of use. It has no dependencies and can be used completely outside
the PEAR infrastructure.
</para>
</refsect1>
</refentry>