I have a simple script that pulls a remote file (using copy()) and then moves it to another directory. When I call the script from the browser, it works great.

However, I need it to be called from a Java applet in the background. When I do this, it creates a file with just 231 bytes and appears to never finish the job. I have included a ignore_user_abort(TRUE); call at the beginning of the script, but it doesn't seem to do anything.

Any clues? In the spirit of solver the greater problem, is there some better way to accomplish my goal? I'm willing to consider about anything I played around with wget and curl for hours yesterday with varying degrees of success, and copy() gets me the closest.

Thanks,
-Jed