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
Try this:
$currentLine = trim(fgets($file));
It's possibly failing on the newline/carriage-return at the end of the line.
If not, where is this insert() function defined? Build a debug section that echos or writes out the attempted queries so you can really see the issue.