I recently had to do an OS reinstall on a dedicated box, and ever since then ftp_put() has been really slow, taking 10-20 seconds to transfer a couple hundred kB image file. I tried the script on a shared box, and it is much faster, so the receiving server isn't the problem. I have also tried setting the connection to passive mode, but that didn't help. Does anyone have some suggestions for other things I can try?