<?xml version="1.0" encoding="utf-8" ?><rss version="2.0" xml:base="https://www.webmaster-forums.net/crss/node/1013282" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title></title>
    <link>https://www.webmaster-forums.net/crss/node/1013282</link>
    <description></description>
    <language>en</language>
          <item>
    <title></title>
    <link>https://www.webmaster-forums.net/serverside-scripting/browser-draing-problem#comment-1077154</link>
    <description> &lt;p&gt;Ok, that&#039;s how I am doing it. I just wanted to make sure I was going about it correctly.&lt;/p&gt;
&lt;p&gt;Thanks All&lt;/p&gt;
 </description>
     <pubDate>Wed, 24 Jan 2001 19:45:13 +0000</pubDate>
 <dc:creator>spragueg</dc:creator>
 <guid isPermaLink="false">comment 1077154 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title></title>
    <link>https://www.webmaster-forums.net/serverside-scripting/browser-draing-problem#comment-1077137</link>
    <description> &lt;p&gt;Here is my go at the simple task.  It only prints once.&lt;br /&gt;
&lt;div class=&quot;codeblock&quot;&gt;&lt;code&gt;{&lt;br /&gt;	&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; local $/;&lt;br /&gt;	&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; open(IN,&amp;quot;&amp;lt;$file&amp;quot;) or die &amp;quot;Cannot Open $file: $!&amp;quot;;&lt;br /&gt;	&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; print &amp;lt;IN&amp;gt;;&lt;br /&gt;	&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; close(IN);&lt;br /&gt;}&lt;/code&gt;&lt;/div&gt;&#039;&lt;/p&gt;
&lt;p&gt;[Edited by Rob Pengelly on Jan. 24, 2001 at 04:26 PM]&lt;/p&gt;
 </description>
     <pubDate>Wed, 24 Jan 2001 14:25:26 +0000</pubDate>
 <dc:creator>Rob Pengelly</dc:creator>
 <guid isPermaLink="false">comment 1077137 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title></title>
    <link>https://www.webmaster-forums.net/serverside-scripting/browser-draing-problem#comment-1077073</link>
    <description> &lt;blockquote class=&quot;bb-quote-body&quot;&gt;&lt;p&gt;Quote: &lt;em&gt;Originally posted by Mark Hensler &lt;/em&gt;&lt;br /&gt;
&lt;strong&gt;why do things twice (or more...)&lt;br /&gt;
while looping thro- the flat file, just print it to the browser &lt;/strong&gt;&lt;/p&gt;&lt;/blockquote&gt;
&lt;p&gt;Excellent advice, there are too many scripts that use something like this:&lt;/p&gt;
&lt;p&gt;open (FILE, $file);&lt;br /&gt;
@filedata = ;&lt;br /&gt;
close FILE;&lt;/p&gt;
&lt;p&gt;foreach (@filedata) {&lt;br /&gt;
    $ToPrint .= $_;&lt;br /&gt;
}&lt;/p&gt;
&lt;p&gt;print $ToPrint;&lt;/p&gt;
&lt;p&gt;..which is fairly ludicrous, much better written as Mark suggested.&lt;/p&gt;
&lt;p&gt;open FILE, $file or die $!;&lt;br /&gt;
flock FILE, 1; #if you like....&lt;br /&gt;
while () {&lt;br /&gt;
    # dosomething with $_ if you need too&lt;br /&gt;
    print $_&lt;br /&gt;
}&lt;br /&gt;
close FILE;&lt;/p&gt;
 </description>
     <pubDate>Tue, 23 Jan 2001 01:59:06 +0000</pubDate>
 <dc:creator>Matt@Ikonboard</dc:creator>
 <guid isPermaLink="false">comment 1077073 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title></title>
    <link>https://www.webmaster-forums.net/serverside-scripting/browser-draing-problem#comment-1077013</link>
    <description> &lt;p&gt;why do things twice (or more...)&lt;br /&gt;
while looping thro- the flat file, just print it to the browser&lt;/p&gt;
 </description>
     <pubDate>Mon, 22 Jan 2001 06:52:19 +0000</pubDate>
 <dc:creator>Mark Hensler</dc:creator>
 <guid isPermaLink="false">comment 1077013 at https://www.webmaster-forums.net</guid>
  </item>
  </channel>
</rss>
