Date: 07/31/00
- Next message: Egon Schmid ( <email protected>): "Re: [PHP-DOC] cvs: phpdoc /en/features remote-files.xml"
- Previous message: Hojtsy Gabor: "Re: [PHP-DOC] cvs: phpdoc /fr bookinfo.xml"
- Maybe in reply to: Egon Schmid: "[PHP-DOC] cvs: phpdoc /en/features remote-files.xml"
- Next in thread: Egon Schmid ( <email protected>): "Re: [PHP-DOC] cvs: phpdoc /en/features remote-files.xml"
- Reply: Egon Schmid ( <email protected>): "Re: [PHP-DOC] cvs: phpdoc /en/features remote-files.xml"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Hello Egon!
> Used CDATA sections and "
>+ <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);
> ?>
>+]]>
> </programlisting>
Watch out! The closing part you used here is ?> 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/
- Next message: Egon Schmid ( <email protected>): "Re: [PHP-DOC] cvs: phpdoc /en/features remote-files.xml"
- Previous message: Hojtsy Gabor: "Re: [PHP-DOC] cvs: phpdoc /fr bookinfo.xml"
- Maybe in reply to: Egon Schmid: "[PHP-DOC] cvs: phpdoc /en/features remote-files.xml"
- Next in thread: Egon Schmid ( <email protected>): "Re: [PHP-DOC] cvs: phpdoc /en/features remote-files.xml"
- Reply: Egon Schmid ( <email protected>): "Re: [PHP-DOC] cvs: phpdoc /en/features remote-files.xml"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]

