I\'m not asking about uploading a file from a browser to a php script, there\'s plenty of tutorials about that already. I\'m asking about this:
I have a php script t
You need two Scripts.
First script that will in way emulate browser behavior, it will take a file and send it to seconds script, that will handles it just like regular file upload script.
My guess you have to use "http_post_fields" for the first script, it seems to handle files. http://us2.php.net/manual/en/function.http-post-fields.php
Good Luck.