<?xml version="1.0" encoding="utf-8" ?><rss version="2.0" xml:base="https://www.webmaster-forums.net/crss/node/1021304" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title></title>
    <link>https://www.webmaster-forums.net/crss/node/1021304</link>
    <description></description>
    <language>en</language>
          <item>
    <title></title>
    <link>https://www.webmaster-forums.net/serverside-scripting/new-line-echo-statement#comment-1131573</link>
    <description> &lt;p&gt;ahhh... ok i thought maybe it would output to html when it was parsed. thanks.&lt;/p&gt;
 </description>
     <pubDate>Sat, 17 May 2003 03:30:59 +0000</pubDate>
 <dc:creator>jammin</dc:creator>
 <guid isPermaLink="false">comment 1131573 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title></title>
    <link>https://www.webmaster-forums.net/serverside-scripting/new-line-echo-statement#comment-1131361</link>
    <description> &lt;blockquote class=&quot;bb-quote-body&quot;&gt;&lt;p&gt;Quote: It will work in the HTML source, but not in the displayed HTML. Of course Andy&#039;s example is missing a closing  tag, lol.&lt;/p&gt;&lt;/blockquote&gt;
&lt;p&gt;True... but then, so was the original example! &lt;img src=&quot;https://www.webmaster-forums.net/misc/smileys/wink.png&quot; title=&quot;Wink&quot; alt=&quot;Wink&quot; class=&quot;smiley-content&quot; /&gt;&lt;/p&gt;
&lt;p&gt;Basically the  puts the line break in the html, so when the page is viewed in a web browser your content will go to the next line. the /n will put a linebreak in the code so it will split the source code (ie what you see when you go to &quot;view source&quot;) into multiple lines&lt;/p&gt;
&lt;p&gt;if you don&#039;t put a /n after the  the source will look like&lt;/p&gt;
&lt;p&gt;&lt;code&gt;blah blah blah&amp;lt;br&amp;gt;blah blah blah&amp;lt;br&amp;gt;blah blah blah&amp;lt;br&amp;gt;&lt;/code&gt;&#039;&lt;/p&gt;
&lt;p&gt;with the /n it will look like:&lt;/p&gt;
&lt;p&gt;&lt;div class=&quot;codeblock&quot;&gt;&lt;code&gt;blah blah blah&amp;lt;br&amp;gt;&lt;br /&gt;blah blah blah&amp;lt;br&amp;gt;&lt;br /&gt;blah blah blah&amp;lt;br&amp;gt;&lt;/code&gt;&lt;/div&gt;&#039;&lt;/p&gt;
 </description>
     <pubDate>Thu, 15 May 2003 08:25:50 +0000</pubDate>
 <dc:creator>andy206uk</dc:creator>
 <guid isPermaLink="false">comment 1131361 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title></title>
    <link>https://www.webmaster-forums.net/serverside-scripting/new-line-echo-statement#comment-1131339</link>
    <description> &lt;p&gt;It will work in the HTML source, but not in the displayed HTML. Of course Andy&#039;s example is missing a closing  tag, lol.&lt;/p&gt;
&lt;p&gt;\r\n works for text areas, et cetera. &lt;/p&gt;
&lt;p&gt;You want the HTML to look like this:&lt;/p&gt;
&lt;p&gt;&lt;a href=&quot;&quot;&gt;text&lt;/a&gt;&lt;br /&gt;
&lt;a href=&quot;&quot;&gt;text&lt;/a&gt;&lt;br /&gt;
&lt;a href=&quot;&quot;&gt;text&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Or &lt;/p&gt;
&lt;p&gt;&lt;a href=&quot;&quot;&gt;text&lt;/a&gt;&lt;br /&gt;
&lt;a href=&quot;&quot;&gt;text&lt;/a&gt;&lt;br /&gt;
&lt;a href=&quot;&quot;&gt;text&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;???&lt;/p&gt;
 </description>
     <pubDate>Wed, 14 May 2003 23:32:54 +0000</pubDate>
 <dc:creator>Suzanne</dc:creator>
 <guid isPermaLink="false">comment 1131339 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title></title>
    <link>https://www.webmaster-forums.net/serverside-scripting/new-line-echo-statement#comment-1131337</link>
    <description> &lt;p&gt;thanks, but i was wondering about the \n thingy, so it just doesnt work when outputting to html?&lt;/p&gt;
 </description>
     <pubDate>Wed, 14 May 2003 22:14:58 +0000</pubDate>
 <dc:creator>jammin</dc:creator>
 <guid isPermaLink="false">comment 1131337 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title></title>
    <link>https://www.webmaster-forums.net/serverside-scripting/new-line-echo-statement#comment-1131306</link>
    <description> &lt;p&gt;Yeah if you meant in the browser then look at andy&#039;s example and forget mine. I thought you meant when it actually prints to the html source.&lt;br /&gt;
-dk&lt;/p&gt;
 </description>
     <pubDate>Wed, 14 May 2003 13:29:03 +0000</pubDate>
 <dc:creator>dk01</dc:creator>
 <guid isPermaLink="false">comment 1131306 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title></title>
    <link>https://www.webmaster-forums.net/serverside-scripting/new-line-echo-statement#comment-1131300</link>
    <description> &lt;p&gt;do you mean it wont do a newline when you display it in a browser?&lt;/p&gt;
&lt;p&gt;Thats cos its html! you need a &lt;/p&gt;
&lt;p&gt;&lt;div class=&quot;codeblock&quot;&gt;&lt;code&gt;&lt;span style=&quot;color: #000000&quot;&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;&amp;lt;?php&lt;br /&gt;$filename &lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;= &lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;&#039;test.txt&#039;&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$handle &lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;= &lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;fopen&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$filename&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;, &lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;&#039;r&#039;&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;);&lt;br /&gt;while(!&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;feof&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$handle&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;))&lt;br /&gt;{&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$text&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;= &lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;fgets&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$handle&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;);&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; echo \&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;&quot;&amp;lt;a href=\\&quot;&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$text&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;\\&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;&quot;&amp;gt;\&quot;;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; echo &lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$text&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; echo \&quot;&amp;lt;br&amp;gt;\&quot;;&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;fclose(&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$handle&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;);&lt;br /&gt;?&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/div&gt;&lt;/p&gt;
 </description>
     <pubDate>Wed, 14 May 2003 12:15:40 +0000</pubDate>
 <dc:creator>andy206uk</dc:creator>
 <guid isPermaLink="false">comment 1131300 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title></title>
    <link>https://www.webmaster-forums.net/serverside-scripting/new-line-echo-statement#comment-1131282</link>
    <description> &lt;p&gt;Are you on a mac or unix machine?&lt;br /&gt;
It matters and actually windows newlines are \r\n.&lt;br /&gt;
Anyways for a solution go to this page:&lt;br /&gt;
&lt;a href=&quot;http://www.php.net/manual/en/function.nl2br.php&quot; class=&quot;bb-url&quot;&gt;http://www.php.net/manual/en/function.nl2br.php&lt;/a&gt;&lt;br /&gt;
and look at the comment by &lt;strong&gt;eightraks at linux-foo dot com&lt;/strong&gt;&lt;br /&gt;
-dk&lt;/p&gt;
 </description>
     <pubDate>Wed, 14 May 2003 06:56:44 +0000</pubDate>
 <dc:creator>dk01</dc:creator>
 <guid isPermaLink="false">comment 1131282 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title></title>
    <link>https://www.webmaster-forums.net/serverside-scripting/new-line-echo-statement#comment-1131270</link>
    <description> &lt;p&gt;thanks, but it still doesnt work. it wont put out a new line.&lt;/p&gt;
 </description>
     <pubDate>Wed, 14 May 2003 05:10:44 +0000</pubDate>
 <dc:creator>jammin</dc:creator>
 <guid isPermaLink="false">comment 1131270 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title></title>
    <link>https://www.webmaster-forums.net/serverside-scripting/new-line-echo-statement#comment-1131268</link>
    <description> &lt;p&gt;just put the \n where you want the newline to go, is better in a quoted or bracketed section&lt;br /&gt;
echo &quot;&lt;a&gt;&lt;strong&gt;\n&lt;/strong&gt;&quot;; or you can add it before the $text (second line), can even make it one whole line&lt;br /&gt;
echo &quot;&lt;a&gt;&lt;strong&gt;\n&lt;/strong&gt;$text&lt;/a&gt;&quot;; &lt;/a&gt;&lt;/p&gt;
&lt;p&gt;don&#039;t forget to close the link ()&lt;/p&gt;
 </description>
     <pubDate>Wed, 14 May 2003 04:50:15 +0000</pubDate>
 <dc:creator>Busy</dc:creator>
 <guid isPermaLink="false">comment 1131268 at https://www.webmaster-forums.net</guid>
  </item>
  </channel>
</rss>
