<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="ru">
		<id>http://wbex.ru/index.php?action=history&amp;feed=atom&amp;title=PHP%2FFile_Directory%2Ffgets</id>
		<title>PHP/File Directory/fgets - История изменений</title>
		<link rel="self" type="application/atom+xml" href="http://wbex.ru/index.php?action=history&amp;feed=atom&amp;title=PHP%2FFile_Directory%2Ffgets"/>
		<link rel="alternate" type="text/html" href="http://wbex.ru/index.php?title=PHP/File_Directory/fgets&amp;action=history"/>
		<updated>2026-04-06T01:51:52Z</updated>
		<subtitle>История изменений этой страницы в вики</subtitle>
		<generator>MediaWiki 1.30.0</generator>

	<entry>
		<id>http://wbex.ru/index.php?title=PHP/File_Directory/fgets&amp;diff=612&amp;oldid=prev</id>
		<title> в 10:37, 26 мая 2010</title>
		<link rel="alternate" type="text/html" href="http://wbex.ru/index.php?title=PHP/File_Directory/fgets&amp;diff=612&amp;oldid=prev"/>
				<updated>2010-05-26T10:37:33Z</updated>
		
		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;table class=&quot;diff diff-contentalign-left&quot; data-mw=&quot;interface&quot;&gt;
				&lt;tr style=&quot;vertical-align: top;&quot; lang=&quot;ru&quot;&gt;
				&lt;td colspan=&quot;1&quot; style=&quot;background-color: white; color:black; text-align: center;&quot;&gt;← Предыдущая&lt;/td&gt;
				&lt;td colspan=&quot;1&quot; style=&quot;background-color: white; color:black; text-align: center;&quot;&gt;Версия 10:37, 26 мая 2010&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; style=&quot;text-align: center;&quot; lang=&quot;ru&quot;&gt;&lt;div class=&quot;mw-diff-empty&quot;&gt;(нет различий)&lt;/div&gt;
&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;</summary>
			</entry>

	<entry>
		<id>http://wbex.ru/index.php?title=PHP/File_Directory/fgets&amp;diff=613&amp;oldid=prev</id>
		<title>Admin: 1 версия</title>
		<link rel="alternate" type="text/html" href="http://wbex.ru/index.php?title=PHP/File_Directory/fgets&amp;diff=613&amp;oldid=prev"/>
				<updated>2010-05-26T07:04:34Z</updated>
		
		<summary type="html">&lt;p&gt;1 версия&lt;/p&gt;
&lt;p&gt;&lt;b&gt;Новая страница&lt;/b&gt;&lt;/p&gt;&lt;div&gt;==Checking for an error from fopen(), fgets(), or fclose()==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
   &lt;br /&gt;
  &amp;lt;!-- start source code --&amp;gt;&lt;br /&gt;
   &lt;br /&gt;
    &amp;lt;source lang=&amp;quot;html4strict&amp;quot;&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
&amp;lt;?&lt;br /&gt;
$fh = fopen(&amp;quot;data.txt&amp;quot;,&amp;quot;rb&amp;quot;);&lt;br /&gt;
if (! $fh) {&lt;br /&gt;
    print &amp;quot;Error opening people.txt: $php_errormsg&amp;quot;;&lt;br /&gt;
} else {&lt;br /&gt;
    for ($line = fgets($fh); ! feof($fh); $line = fgets($fh)) {&lt;br /&gt;
        if ($line === false) {&lt;br /&gt;
            print &amp;quot;Error reading line: $php_errormsg&amp;quot;;&lt;br /&gt;
        } else {&lt;br /&gt;
            $line = trim($line);&lt;br /&gt;
            $info = explode(&amp;quot;|&amp;quot;, $line);&lt;br /&gt;
            print &amp;quot;&amp;lt;li&amp;gt;&amp;lt;a href=&amp;quot;mailto:&amp;quot; . $info[0] . &amp;quot;&amp;quot;&amp;gt;&amp;quot; . $info[1] .&amp;quot;&amp;lt;/li&amp;gt;\n&amp;quot;;&lt;br /&gt;
        }&lt;br /&gt;
    }&lt;br /&gt;
    if (! fclose($fh)) {&lt;br /&gt;
        print &amp;quot;Error closing people.txt: $php_errormsg&amp;quot;;&lt;br /&gt;
    }&lt;br /&gt;
}&lt;br /&gt;
?&amp;gt;&lt;br /&gt;
//data.txt&lt;br /&gt;
a@example.ru|Alice&lt;br /&gt;
b@example.org|Bill&lt;br /&gt;
c@example.ru|Charlie&lt;br /&gt;
d@example.ru|Lewis&lt;br /&gt;
  &lt;br /&gt;
  &amp;lt;/source&amp;gt;&lt;br /&gt;
    &lt;br /&gt;
   &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Counting paragraphs in a file==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
   &lt;br /&gt;
  &amp;lt;!-- start source code --&amp;gt;&lt;br /&gt;
   &lt;br /&gt;
    &amp;lt;source lang=&amp;quot;html4strict&amp;quot;&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
&amp;lt;?php&lt;br /&gt;
$paragraphs = 0;&lt;br /&gt;
if ($fh = fopen(&amp;quot;great-american-novel.txt&amp;quot;,&amp;quot;r&amp;quot;)) {&lt;br /&gt;
  while (! feof($fh)) {&lt;br /&gt;
    $s = fgets($fh);&lt;br /&gt;
    if ((&amp;quot;\n&amp;quot; == $s) || (&amp;quot;\r\n&amp;quot; == $s)) {&lt;br /&gt;
      $paragraphs++;&lt;br /&gt;
    }&lt;br /&gt;
  }&lt;br /&gt;
}&lt;br /&gt;
print $paragraphs;&lt;br /&gt;
?&amp;gt;&lt;br /&gt;
  &lt;br /&gt;
  &amp;lt;/source&amp;gt;&lt;br /&gt;
    &lt;br /&gt;
   &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Counting records in a file==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
   &lt;br /&gt;
  &amp;lt;!-- start source code --&amp;gt;&lt;br /&gt;
   &lt;br /&gt;
    &amp;lt;source lang=&amp;quot;html4strict&amp;quot;&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
&amp;lt;?php&lt;br /&gt;
$records = 0;&lt;br /&gt;
$record_separator = &amp;quot;--end--&amp;quot;;&lt;br /&gt;
if ($fh = fopen(&amp;quot;great-american-textfile-database.txt&amp;quot;,&amp;quot;r&amp;quot;)) {&lt;br /&gt;
  while (! feof($fh)) {&lt;br /&gt;
    $s = rtrim(fgets($fh));&lt;br /&gt;
    if ($s == $record_separator) {&lt;br /&gt;
      $records++;&lt;br /&gt;
    }&lt;br /&gt;
  }&lt;br /&gt;
}&lt;br /&gt;
print $records;&lt;br /&gt;
?&amp;gt;&lt;br /&gt;
  &lt;br /&gt;
  &amp;lt;/source&amp;gt;&lt;br /&gt;
    &lt;br /&gt;
   &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Creating and Using a File Class==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
   &lt;br /&gt;
  &amp;lt;!-- start source code --&amp;gt;&lt;br /&gt;
   &lt;br /&gt;
    &amp;lt;source lang=&amp;quot;html4strict&amp;quot;&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
&amp;lt;?php &lt;br /&gt;
// Copyright 2005, Lee Babin (lee@thecodeshoppe.ru) &lt;br /&gt;
// This code may be used and redistributed without charge &lt;br /&gt;
// under the terms of the GNU General Public &lt;br /&gt;
// License version 2.0 or later -- www.gnu.org &lt;br /&gt;
// Subject to the retention of this copyright &lt;br /&gt;
// and GPL Notice in all copies or derived works &lt;br /&gt;
&lt;br /&gt;
class cfile { &lt;br /&gt;
    //The path to the file you want to work with. &lt;br /&gt;
    protected $thepath; &lt;br /&gt;
    &lt;br /&gt;
    &lt;br /&gt;
    //Error messages in the form of constants for ease of use. &lt;br /&gt;
    const FOUNDERROR = &amp;quot;Sorry, the file in question does not exist.&amp;quot;; &lt;br /&gt;
    const PERMERROR = &amp;quot;Sorry, you do not have the proper permissions on this file&amp;quot;; &lt;br /&gt;
    const OPENERROR = &amp;quot;Sorry, the file in question could not be opened.&amp;quot;; &lt;br /&gt;
    const CLOSEERROR = &amp;quot;Sorry, the file could not be closed.&amp;quot;; &lt;br /&gt;
    &lt;br /&gt;
    &lt;br /&gt;
    //The constructor function. &lt;br /&gt;
    public function __construct (){ &lt;br /&gt;
        $num_args = func_num_args(); &lt;br /&gt;
        &lt;br /&gt;
        if($num_args &amp;gt; 0){ &lt;br /&gt;
            $args = func_get_args(); &lt;br /&gt;
            $this-&amp;gt;thepath = $args[0]; &lt;br /&gt;
        } &lt;br /&gt;
    } &lt;br /&gt;
&lt;br /&gt;
    //A function to open the file. &lt;br /&gt;
    private function openfile ($readorwrite){ &lt;br /&gt;
    //First, ensure the file exists. &lt;br /&gt;
    try { &lt;br /&gt;
        if (file_exists ($this-&amp;gt;thepath)){ &lt;br /&gt;
            //Now, you need to see if you are reading or writing or both. &lt;br /&gt;
            $proceed = false; &lt;br /&gt;
            if ($readorwrite == &amp;quot;r&amp;quot;){ &lt;br /&gt;
                if (is_readable($this-&amp;gt;thepath)){ &lt;br /&gt;
                    $proceed = true; &lt;br /&gt;
                } &lt;br /&gt;
            } elseif ($readorwrite == &amp;quot;w&amp;quot;){ &lt;br /&gt;
                if (is_writable($this-&amp;gt;thepath)){ &lt;br /&gt;
                    $proceed = true; &lt;br /&gt;
                } &lt;br /&gt;
            } else { &lt;br /&gt;
                if (is_readable($this-&amp;gt;thepath) &amp;amp;&amp;amp; is_writable($this-&amp;gt;thepath)){ &lt;br /&gt;
                    $proceed = true; &lt;br /&gt;
                } &lt;br /&gt;
            } &lt;br /&gt;
            try { &lt;br /&gt;
                if ($proceed){ &lt;br /&gt;
                    //You can now attempt to open the file. &lt;br /&gt;
                    try { &lt;br /&gt;
                        if ($filepointer = fopen ($this-&amp;gt;thepath, $readorwrite)){ &lt;br /&gt;
                            return $filepointer; &lt;br /&gt;
                        } else { &lt;br /&gt;
                            throw new exception (self::OPENERROR); &lt;br /&gt;
                            return false; &lt;br /&gt;
                        } &lt;br /&gt;
                    } catch (exception $e) { &lt;br /&gt;
                        echo $e-&amp;gt;getmessage(); &lt;br /&gt;
                    } &lt;br /&gt;
                } else { &lt;br /&gt;
                    throw new exception (self::PERMERROR); &lt;br /&gt;
                } &lt;br /&gt;
            } catch (exception $e) { &lt;br /&gt;
                echo $e-&amp;gt;getmessage(); &lt;br /&gt;
            } &lt;br /&gt;
        } else { &lt;br /&gt;
            throw new exception (self::FOUNDERROR); &lt;br /&gt;
        } &lt;br /&gt;
    } catch (exception $e) { &lt;br /&gt;
        echo $e-&amp;gt;getmessage(); &lt;br /&gt;
    } &lt;br /&gt;
    } &lt;br /&gt;
    &lt;br /&gt;
    //A function to close a file. &lt;br /&gt;
    function closefile () { &lt;br /&gt;
    try { &lt;br /&gt;
    if (!fclose ($this-&amp;gt;thepath)){ &lt;br /&gt;
    throw new exception (self::CLOSEERROR); &lt;br /&gt;
    } &lt;br /&gt;
    } catch (exception $e) { &lt;br /&gt;
    echo $e-&amp;gt;getmessage(); &lt;br /&gt;
    } &lt;br /&gt;
    } &lt;br /&gt;
    &lt;br /&gt;
    //A function to read a file, then return the results of the read in a string. &lt;br /&gt;
    &lt;br /&gt;
    public function read () { &lt;br /&gt;
    //First, attempt to open the file. &lt;br /&gt;
    $filepointer = $this-&amp;gt;openfile (&amp;quot;r&amp;quot;); &lt;br /&gt;
    &lt;br /&gt;
    //Now, return a string with the read data. &lt;br /&gt;
    &lt;br /&gt;
    &lt;br /&gt;
    if ($filepointer != false){ &lt;br /&gt;
    //Then you can read the file. &lt;br /&gt;
    return fread ($filepointer,filesize ($this-&amp;gt;thepath)); &lt;br /&gt;
    &lt;br /&gt;
    } &lt;br /&gt;
    &lt;br /&gt;
    //Lastly, close the file. &lt;br /&gt;
    $this-&amp;gt;closefile (); &lt;br /&gt;
    } &lt;br /&gt;
    &lt;br /&gt;
    &lt;br /&gt;
    //A function to write to a file. &lt;br /&gt;
    &lt;br /&gt;
    public function write ($towrite) { &lt;br /&gt;
    //First, attempt to open the file. &lt;br /&gt;
    $filepointer = $this-&amp;gt;openfile (&amp;quot;w&amp;quot;); &lt;br /&gt;
    &lt;br /&gt;
    &lt;br /&gt;
    //Now, return a string with the read data. &lt;br /&gt;
    &lt;br /&gt;
    if ($filepointer != false){ &lt;br /&gt;
    //Then you can read the file. &lt;br /&gt;
    return fwrite ($filepointer, $towrite); &lt;br /&gt;
    &lt;br /&gt;
    &lt;br /&gt;
    } &lt;br /&gt;
    &lt;br /&gt;
    //Lastly, close the file. &lt;br /&gt;
    $this-&amp;gt;closefile (); &lt;br /&gt;
    } &lt;br /&gt;
    &lt;br /&gt;
    &lt;br /&gt;
    //A function to append to a file. &lt;br /&gt;
    &lt;br /&gt;
    public function append ($toappend) { &lt;br /&gt;
    //First, attempt to open the file. &lt;br /&gt;
    $filepointer = $this-&amp;gt;openfile (&amp;quot;a&amp;quot;); &lt;br /&gt;
    &lt;br /&gt;
    &lt;br /&gt;
    //Now, return a string with the read data. &lt;br /&gt;
    &lt;br /&gt;
    if ($filepointer != false){ &lt;br /&gt;
    //Then you can read the file. &lt;br /&gt;
    return fwrite ($filepointer, $toappend); &lt;br /&gt;
    &lt;br /&gt;
    &lt;br /&gt;
    } &lt;br /&gt;
    &lt;br /&gt;
    //Lastly, close the file. &lt;br /&gt;
    $this-&amp;gt;closefile (); &lt;br /&gt;
    } &lt;br /&gt;
    &lt;br /&gt;
    &lt;br /&gt;
    //A function to set the path to a new file. &lt;br /&gt;
    public function setpath ($newpath) { &lt;br /&gt;
    $this-&amp;gt;thepath = $newpath; &lt;br /&gt;
    } &lt;br /&gt;
    &lt;br /&gt;
} &lt;br /&gt;
?&amp;gt; &lt;br /&gt;
&lt;br /&gt;
&amp;lt;?php &lt;br /&gt;
//Include the class. &lt;br /&gt;
require_once (&amp;quot;file.class.inc.php&amp;quot;); &lt;br /&gt;
//Then create a new instance of the class. &lt;br /&gt;
$myfile = new cfile (&amp;quot;data.txt&amp;quot;); &lt;br /&gt;
//Now, let&amp;quot;s try reading it. &lt;br /&gt;
echo $myfile-&amp;gt;read(); &lt;br /&gt;
&lt;br /&gt;
//Then let&amp;quot;s try writing to the file. &lt;br /&gt;
$myfile-&amp;gt;write (&amp;quot;Hello World!&amp;quot;); &lt;br /&gt;
&lt;br /&gt;
//Then, let&amp;quot;s try appending. &lt;br /&gt;
$myfile-&amp;gt;append (&amp;quot;Hello Again!&amp;quot;); &lt;br /&gt;
&lt;br /&gt;
?&amp;gt;&lt;br /&gt;
  &lt;br /&gt;
  &amp;lt;/source&amp;gt;&lt;br /&gt;
    &lt;br /&gt;
   &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==fgets() function returns a string read from a file.==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
   &lt;br /&gt;
  &amp;lt;!-- start source code --&amp;gt;&lt;br /&gt;
   &lt;br /&gt;
    &amp;lt;source lang=&amp;quot;html4strict&amp;quot;&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
Its syntax is: string fgets (int filepointer, int length)&lt;br /&gt;
&amp;lt;?&lt;br /&gt;
$fh = fopen(&amp;quot;data.txt&amp;quot;, &amp;quot;r&amp;quot;);&lt;br /&gt;
while (! feof($fh)) :&lt;br /&gt;
     $line = fgets($fh, 4096);&lt;br /&gt;
     print $line.&amp;quot;&amp;lt;br&amp;gt;&amp;quot;;&lt;br /&gt;
endwhile;&lt;br /&gt;
fclose($fh);&lt;br /&gt;
?&amp;gt;&lt;br /&gt;
  &lt;br /&gt;
  &amp;lt;/source&amp;gt;&lt;br /&gt;
    &lt;br /&gt;
   &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==fgets.php==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
   &lt;br /&gt;
  &amp;lt;!-- start source code --&amp;gt;&lt;br /&gt;
   &lt;br /&gt;
    &amp;lt;source lang=&amp;quot;html4strict&amp;quot;&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
&amp;lt;?php&lt;br /&gt;
   $fh = fopen(&amp;quot;/home/www/data/users.txt&amp;quot;, &amp;quot;rt&amp;quot;);&lt;br /&gt;
   while (!feof($fh)) echo fgets($fh);&lt;br /&gt;
   fclose($fh);&lt;br /&gt;
?&amp;gt;&lt;br /&gt;
  &lt;br /&gt;
  &amp;lt;/source&amp;gt;&lt;br /&gt;
    &lt;br /&gt;
   &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Processing a list of books==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
   &lt;br /&gt;
  &amp;lt;!-- start source code --&amp;gt;&lt;br /&gt;
   &lt;br /&gt;
    &amp;lt;source lang=&amp;quot;html4strict&amp;quot;&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
&amp;lt;?php&lt;br /&gt;
$fh = fopen(&amp;quot;books.txt&amp;quot;,&amp;quot;r&amp;quot;) or die(&amp;quot;can&amp;quot;t open: $php_errormsg&amp;quot;);&lt;br /&gt;
while (! feof($fh)) {&lt;br /&gt;
    $s = rtrim(fgets($fh));&lt;br /&gt;
    list($title,$author,$publication_year) = explode(&amp;quot;|&amp;quot;,$s);&lt;br /&gt;
}&lt;br /&gt;
fclose($fh) or die(&amp;quot;can&amp;quot;t close: $php_errormsg&amp;quot;);&lt;br /&gt;
?&amp;gt;&lt;br /&gt;
  &lt;br /&gt;
  &amp;lt;/source&amp;gt;&lt;br /&gt;
    &lt;br /&gt;
   &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Processing each word in a file==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
   &lt;br /&gt;
  &amp;lt;!-- start source code --&amp;gt;&lt;br /&gt;
   &lt;br /&gt;
    &amp;lt;source lang=&amp;quot;html4strict&amp;quot;&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
&amp;lt;?php&lt;br /&gt;
$fh = fopen(&amp;quot;novel.txt&amp;quot;,&amp;quot;r&amp;quot;) or die($php_errormsg);&lt;br /&gt;
while (! feof($fh)) {&lt;br /&gt;
    if ($s = fgets($fh)) {&lt;br /&gt;
        $words = preg_split(&amp;quot;/\s+/&amp;quot;,$s,-1,PREG_SPLIT_NO_EMPTY);&lt;br /&gt;
    }&lt;br /&gt;
}&lt;br /&gt;
fclose($fh) or die($php_errormsg);&lt;br /&gt;
?&amp;gt;&lt;br /&gt;
  &lt;br /&gt;
  &amp;lt;/source&amp;gt;&lt;br /&gt;
    &lt;br /&gt;
   &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Reading a compressed file==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
   &lt;br /&gt;
  &amp;lt;!-- start source code --&amp;gt;&lt;br /&gt;
   &lt;br /&gt;
    &amp;lt;source lang=&amp;quot;html4strict&amp;quot;&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
&amp;lt;?php&lt;br /&gt;
$fh = fopen(&amp;quot;compress.zlib://lots-of-data.gz&amp;quot;,&amp;quot;r&amp;quot;) or die(&amp;quot;can&amp;quot;t open: $php_errormsg&amp;quot;);&lt;br /&gt;
while ($line = fgets($fh)) {&lt;br /&gt;
    // $line is the next line of uncompressed data&lt;br /&gt;
}&lt;br /&gt;
fclose($fh) or die(&amp;quot;can&amp;quot;t close: $php_errormsg&amp;quot;);&lt;br /&gt;
?&amp;gt;&lt;br /&gt;
  &lt;br /&gt;
  &amp;lt;/source&amp;gt;&lt;br /&gt;
    &lt;br /&gt;
   &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Reading a file a line at a time==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
   &lt;br /&gt;
  &amp;lt;!-- start source code --&amp;gt;&lt;br /&gt;
   &lt;br /&gt;
    &amp;lt;source lang=&amp;quot;html4strict&amp;quot;&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
&amp;lt;?&lt;br /&gt;
$fh = fopen(&amp;quot;people.txt&amp;quot;,&amp;quot;rb&amp;quot;);&lt;br /&gt;
for ($line = fgets($fh); ! feof($fh); $line = fgets($fh)) {&lt;br /&gt;
    $line = trim($line);&lt;br /&gt;
    $info = explode(&amp;quot;|&amp;quot;, $line);&lt;br /&gt;
    print &amp;quot;&amp;lt;li&amp;gt;&amp;lt;a href=&amp;quot;mailto:&amp;quot; . $info[0] . &amp;quot;&amp;quot;&amp;gt;&amp;quot; . $info[1] .&amp;quot;&amp;lt;/li&amp;gt;\n&amp;quot;;&lt;br /&gt;
}&lt;br /&gt;
fclose($fh);&lt;br /&gt;
?&amp;gt;&lt;br /&gt;
//people.txt&lt;br /&gt;
a@example.ru|Alice&lt;br /&gt;
b@example.org|Bill&lt;br /&gt;
c@example.ru|Charlie&lt;br /&gt;
d@example.ru|Lewis&lt;br /&gt;
  &lt;br /&gt;
  &amp;lt;/source&amp;gt;&lt;/div&gt;</summary>
		<author><name>Admin</name></author>	</entry>

	</feed>