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.
$file = @f
Your explode()
call is using 9 spaces as a separator, but your file only appears to have 5 spaces between each number. This means your $currentline
be a single element array containing the original line, and not separate elements with a number in each.
Either change the number of spaces in the explode call, or change to
$currentLine = preg_split('/\s+/', $currentLine);
which will split on any number of sequential spaces.