Re: [PHP-DOC] cvs: phpdoc /en/features remote-files.xml From: Hojtsy Gabor (hgoba <email protected>)
Date: 07/31/00

Hello Egon!

> Used CDATA sections and &quot;

>+ <programlisting role="php">
>+<![CDATA[
>+<?php
>+$file = fopen ("http://www.php.net/", "r");
>+if (!$file) {
>+ echo "<p>Unable to open remote file.\n";
> exit;

>+}
>+while (!feof ($file)) {
>+ $line = fgets ($file, 1024);
>+ /* This only works if the title and its tags are on one line */
>+ if (eregi ("<title>(.*)</title>", $line, $out)) {
>+ $title = $out[1];
>+ break;
> }
>+}
>+fclose($file);
> ?&gt;
>+]]>
> </programlisting>

Watch out! The closing part you used here is ?&gt; not ?>.

Is that mean we should use CDATA sections for examples
in the docs? I haven't seen any exmpales with this form,
since I am translating...

Hi,
Hojtsy Gabor (Goba in CVS)
_________________________________________________________________________
The starting-point for hungarian webmasters - http://weblabor.hu/
PHP Manual hungarian translation [under const.] - http://weblabor.hu/php/