get a column data into a text file one by one?
<p>the csv data as the following:</p>

<pre><code>  (first line)   price   url

  (second line)    $10   src="http://www.test.com/1455/"||src="http://www.test.com/image/1456/"||

  (third line)    $20  src="http://www.test.com/2260/"||src="http://www.test.com/2261/"||

      ....   ........
</code></pre>

<p>now i want to put all the data from the url column into a text file. and shows the data one by one. namely:</p>

<pre><code>http://www.test.com/1455/
http://www.test.com/image/1456/
http://www.test.com/2260/
http://www.test.com/2261/
....
</code></pre>

<p>now,i am stucked. </p>

<p>a, i don't know how to prevent outputting the first line.
b,i don't know how to get the url, and put them i a text file one by one. </p>

<p>first i using the following code to output the data to the screen.</p>

<pre><code>$row = 1;
if (($handle = fopen("test.csv", "r")) !== FALSE) {
    while (($data = fgetcsv($handle, 1000, ",")) !== FALSE) {
        $num = count($data);

        $row++;

       echo $data[1] . "&lt;br /&gt;\n";

    }
    fclose($handle);
}
</code></pre>

<p>the above code also output the first line (url). i don't want to output it. how should i do. 
thank you.</p>
