0

I have two IPs on my server and I'm trying to split up my xml requests over both IP. How can I get simplexml_load_file to make the request on different IPs?

hakre
  • 193,403
  • 52
  • 435
  • 836
Dustin
  • 1
  • 1

1 Answers1

1

You can use cURL and use the CURLOPT_INTERFACE option to load the XML stream. Then use simplexml_load_string on the result to parse it.

See select outgoing ip for curl request for how to do that.

Community
  • 1
  • 1
BenMorel
  • 34,448
  • 50
  • 182
  • 322