Hi
I am writing a PHP script that sends POST method data to another PHP script on a remote server. This remote server looks at the POST data (which is an id), and then verifies the id in a database and then sends a zip file or whatever type of file back to the client. I want a PHP script to be able to receive that file and save it somewhere on my server.
Can this be done?
Just to clarify:
- Send request to a remote PHP script using POST method data.
- Remote PHP script verifies that data is post and runs the id through a database.
- Remote PHP script sends the file that corresponds to the ID (this comes up as a question whether the client wants to save or open the file).
- My PHP script downloads the file that the remote PHP script has put up for download, and stores the file somewhere on my server.