cvs: peardoc /en/package/php/php-compat intro.xml

From: Date: Sat, 05 Jun 2004 07:30:07 +0000
Subject: cvs: peardoc /en/package/php/php-compat intro.xml
Groups: php.pear.doc 
Request: Send a blank email to pear-doc+get-4243@lists.php.net to get a copy of this message
aidan Sat Jun 5 03:30:07 2004 EDT Modified files: /peardoc/en/package/php/php-compat intro.xml Log: Fixed formatting issues http://cvs.php.net/diff.php/peardoc/en/package/php/php-compat/intro.xml?r1=1.8&r2=1.9&ty=u Index: peardoc/en/package/php/php-compat/intro.xml diff -u peardoc/en/package/php/php-compat/intro.xml:1.8 peardoc/en/package/php/php-compat/intro.xml:1.9 --- peardoc/en/package/php/php-compat/intro.xml:1.8 Sat Jun 5 02:55:07 2004 +++ peardoc/en/package/php/php-compat/intro.xml Sat Jun 5 03:30:07 2004 @@ -1,5 +1,5 @@ <?xml version="1.0" encoding="ISO-8859-1" ?> -<!-- $Revision: 1.8 $ --> +<!-- $Revision: 1.9 $ --> <refentry id="package.php.php-compat.intro"> <refnamediv> <refname>Introduction</refname> @@ -16,20 +16,20 @@ <example> <title>Loading a component with PHP_Compat:</title> <programlisting role="php"> - <![CDATA[ - require_once 'PHP/Compat.php'; +<![CDATA[ +require_once 'PHP/Compat.php'; - PHP_Compat::loadFunction('file_get_contents'); - ]]> +PHP_Compat::loadFunction('file_get_contents'); +]]> </programlisting> </example> <para>Or, if you don't wish to use the class, you can load it manually.</para> <example> <title>Loading a component manually:</title> <programlisting role="php"> - <![CDATA[ - require_once 'PHP/Compat/Function/file_put_contents.php'; - ]]> +<![CDATA[ +require_once 'PHP/Compat/Function/file_put_contents.php'; +]]> </programlisting> </example> <para>The function is then ready to use like you would normally.</para>

« previous php.pear.doc (#4243) next »