title: How to read line by line in php
body: <p>when i try to insert each line into my oracle database i get an error stating invalid number, but if have only one line in the file it works fine.</p>
  
  <pre><code>$file = @fopen('file.text', "r") ;  
  
  
  // while there is another line to read in the file
  while (!feof($file))
  {
      // Get the current line that the file is reading
      $currentLine = fgets($file) ;
      $currentLine = explode('        ',$currentLine) ;
      insert($currentLine) ;
  
  
  }   
  
  fclose($file) ;
  </code></pre>
  
  <p>the lines look like this</p>
  
  <pre><code>1     4     100
  1     4     101
  </code></pre>