philip Sat Nov 9 16:01:11 2002 EDT
Modified files:
/phpdoc/en/reference/filesystem/functions fread.xml
Log:
Removed empty note; a few <?php ?> additions.
Index: phpdoc/en/reference/filesystem/functions/fread.xml
diff -u phpdoc/en/reference/filesystem/functions/fread.xml:1.3
phpdoc/en/reference/filesystem/functions/fread.xml:1.4
--- phpdoc/en/reference/filesystem/functions/fread.xml:1.3 Sat Oct 26 16:40:42
2002
+++ phpdoc/en/reference/filesystem/functions/fread.xml Sat Nov 9 16:01:11 2002
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="iso-8859-1"?>
-<!-- $Revision: 1.3 $ -->
+<!-- $Revision: 1.4 $ -->
<!-- splitted from ./en/functions/filesystem.xml, last change in rev 1.25 -->
<refentry id="function.fread">
<refnamediv>
@@ -24,11 +24,13 @@
<informalexample>
<programlisting role="php">
<![CDATA[
+<?php
// get contents of a file into a string
$filename = "/usr/local/something.txt";
$fd = fopen ($filename, "r");
$contents = fread ($fd, filesize ($filename));
fclose ($fd);
+?>
]]>
</programlisting>
</informalexample>
@@ -44,18 +46,16 @@
<informalexample>
<programlisting role="php">
<![CDATA[
+<?php
$filename = "c:\\files\\somepic.gif";
$fd = fopen ($filename, "rb");
$contents = fread ($fd, filesize ($filename));
fclose ($fd);
+?>
]]>
</programlisting>
</informalexample>
</para>
- <note>
- <para>
- </para>
- </note>
<simpara>
See also <function>fwrite</function>, <function>fopen</function>,
<function>fsockopen</function>, <function>popen</function>,
--
PHP Documentation Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php