Upload file with php to another php server

后端 未结 3 1526
自闭症患者
自闭症患者 2020-12-07 15:48

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

3条回答
  •  渐次进展
    2020-12-07 16:29

    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.

提交回复
热议问题