Originally from V-Nessa's site, I thought I would share the PHP script that I have now modified to include Secure Copy (SCP) support.
If you need help with usage, it's exactly the same as in V_Nessa's original post, so read there, but now supports copying to a remote host over SSH.