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?
Asked
Active
Viewed 304 times
1 Answers
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.