title: Problems with using PHP to display CSV file as HTML table
body: <p>I'm trying to display a two column, four row CSV file in an HTML table. I have the code below, but it only displays the first row and I don't understand why.</p>
  
  <pre><code>&lt;html&gt;
  &lt;head&gt;
      &lt;title&gt;test&lt;/title&gt;
  &lt;/head&gt;
  &lt;body&gt;
      &lt;table border=1&gt;
          &lt;?PHP
          $file_handle = fopen("oee1.csv", "r");
          while (!feof($file_handle) ) {
              $line_of_text = fgetcsv($file_handle, 1024);
              echo '&lt;tr&gt;&lt;td&gt;' . $line_of_text[0] . '&lt;/td&gt;&lt;td&gt;' . $line_of_text[1] . '&lt;/td&gt;&lt;/tr&gt;';
          }  
          fclose($file_handle);
          ?&gt;
      &lt;/table&gt;
  &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>
  
  <p>The csv file looks like:</p>
  
  <pre><code>test1, 1
  test2, 2
  test3, 3
  test4, 4
  </code></pre>