Jump to content

HTTP file posting


suresh1

Recommended Posts

  • 4 weeks later...

If both servers run PHP, you will need one server to open a connection, request/push the xml from/to the other server. If pushing, you should use HTTP post to send the xml data, otherwise you can use curl, fread or file_get_contents for pulling an xml download into PHP and then store it as required. Note if you are able to see the xml on your server already, half the work is done you just need a PHP script on the recipient server to download the xml and store it, and of course a cron or something to invoke the script when required.

Link to comment
https://forums.phpfreaks.com/topic/182133-http-file-posting/#findComment-976634
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.