Thanks, but I'm going to wait for your program!
Also, I'm not sure I'm running out of memory. I use 'top' in the Terminal and there's plenty of memory left when curl stops. Plus in cPanel it shows the memory usage and it only hits like 14% when I keep refreshing while curl is running.
Thank...