<?xml version="1.0" encoding="utf-8" ?><rss version="2.0" xml:base="https://www.webmaster-forums.net/crss/node/1032913" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title></title>
    <link>https://www.webmaster-forums.net/crss/node/1032913</link>
    <description></description>
    <language>en</language>
          <item>
    <title></title>
    <link>https://www.webmaster-forums.net/serverside-scripting/file-line-readerjumper#comment-1192636</link>
    <description> &lt;p&gt;Nevermind, I have been developing this code and it&#039;s doing what I want to, thanks for your help.&lt;/p&gt;
 </description>
     <pubDate>Sun, 05 Feb 2006 17:23:12 +0000</pubDate>
 <dc:creator>Nicholas</dc:creator>
 <guid isPermaLink="false">comment 1192636 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title></title>
    <link>https://www.webmaster-forums.net/serverside-scripting/file-line-readerjumper#comment-1192574</link>
    <description> &lt;p&gt;The file is in the following format&lt;/p&gt;
&lt;p&gt;Transaction#|MyID#|*This is the number I want it to jump to*|Date and Time of click|Clicks|I get paid this amount|Affiliate name||My Defined tracking #.&lt;/p&gt;
&lt;p&gt;Incase you can&#039;t tell, this is an activity file that my merchant provides me.&lt;/p&gt;
 </description>
     <pubDate>Sat, 04 Feb 2006 21:18:52 +0000</pubDate>
 <dc:creator>Nicholas</dc:creator>
 <guid isPermaLink="false">comment 1192574 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title></title>
    <link>https://www.webmaster-forums.net/serverside-scripting/file-line-readerjumper#comment-1192532</link>
    <description> &lt;p&gt;I&#039;m not too sure what you mean about selecting the number, would the number be on the first line of the file?&lt;/p&gt;
&lt;p&gt;Assuming so, here&#039;s my approach.&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;$lines &lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;= &lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;file&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;&#039;csv.txt&#039;&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;); &lt;/span&gt;&lt;span style=&quot;color: #FF8000&quot;&gt;// Open the file&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$Which_Line&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$lines&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;[&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;]; &lt;/span&gt;&lt;span style=&quot;color: #FF8000&quot;&gt;// Select the number from the first line of the file&lt;br /&gt;&lt;br /&gt;// Go to that line and print out each line after it.&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;for(&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$x&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$Which_Line&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;; &lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$x&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;count&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$lines&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;); &lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$x&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;++){&lt;br /&gt;&lt;br /&gt; &lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$bits&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;explode&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;&#039;||&#039;&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$lines&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;[&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$x&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;$First_Part&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$bits&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;[&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;0&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;$Second_Part&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$bits&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;[&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;];&lt;br /&gt;&lt;br /&gt; echo \&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;&quot;Day &lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;{&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$x&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;}&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;&#039;s Business part 1: &lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$First_Part&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;&amp;lt;br&amp;gt;&lt;br /&gt; Day &lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;{&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$x&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;}&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;&#039;s Business part 2: &lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$Second&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt; Part\&quot;;&lt;br /&gt;}&lt;br /&gt;?&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/div&gt;&lt;/p&gt;
&lt;p&gt;For a text file with the following:&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;2&lt;br /&gt;
Feed Cat||Walk Dog&lt;br /&gt;
Order Takeout||Take Over the World&lt;br /&gt;
Make pancakes||Kill the neighbour&lt;br /&gt;
Get Drunk||Fall Asleep&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;.. the script would print out:&lt;br /&gt;
Day 2&#039;s business part 1: Order Takeout&lt;br /&gt;
Day 2&#039;s business part 2: Take Over The World&lt;br /&gt;
Day 3&#039;s business part 1: Make Pancakes&lt;br /&gt;
Day 3&#039;s business part 2: Kill the neighbour&lt;br /&gt;
Day 4&#039;s business part 1: Get Drunk&lt;br /&gt;
Day 4&#039;s business part 2: Fall Asleep&lt;/p&gt;
&lt;p&gt;Hope this helps.&lt;/p&gt;
 </description>
     <pubDate>Sat, 04 Feb 2006 02:12:28 +0000</pubDate>
 <dc:creator>Dux0r</dc:creator>
 <guid isPermaLink="false">comment 1192532 at https://www.webmaster-forums.net</guid>
  </item>
  </channel>
</rss>
