Thanks Paul and Shawn:

I can't answer the Why's in your posts, as this is literally my first
attempt at PHP, but I will investigate your response and refine my code

What I did find is that by replacing the following code:

$fhandle = fopen("/ramdrive/import_file.txt", "w");
  foreach($new_format as $data) {
    fputs($fhandle, "$data");

with this code:

$fp = fopen('data.txt', 'a');
fwrite($fp, $new_format[$each_rec]);

The parsing finished literally, within seconds. I don't have to worry
about anyone else opening this file, so I think this should work ok.

Thanks for your help....

Fred Schnittke

Powered by Execulink Webmail

PHP General Mailing List (
To unsubscribe, visit:

Reply via email to