suresh1 Posted November 19, 2009 Share Posted November 19, 2009 hi i have move one xml file from one server to another server using PHP. need suggestions .. Thanks in ADV Quote Link to comment https://forums.phpfreaks.com/topic/182133-http-file-posting/ Share on other sites More sharing options...
killerb Posted December 13, 2009 Share Posted December 13, 2009 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. Quote Link to comment https://forums.phpfreaks.com/topic/182133-http-file-posting/#findComment-976634 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.