I think I recently came across a PHP class that would do what you are looking for. I believe it was a file upload, file manipulation script, that may do what you are seeking. If I come across it again, I'll bookmark it and post the URL in this thread.
========================================
Buh Bye!
Cheers,
Me
========================================
Buh Bye!
Cheers,
Me