I am stumped. The code is exactly the same and they are both hosted by the same rackspace . . . yet one works fine and the other generates an error:
[domdocument.load]: failed to open stream: HTTP request failed!
The code is fairly simple:
$doc = new DOMDocument();
$page_url = **valid XML feed**
$doc->load($page_url);
So I do not understand what is causing the error . . . Any ideas on what to check?
Also: everything was working fine until yesterday – so it must have been something in one of the (unfortunately very numerous) patches implemented yesterday. Just need an Idea of where to start looking
Some investigating reveals it is the feed’s problem – (Indeed’s job API) – switched to a different job feed provider & everything is working, still confused why it would work in dev but not production (unless indeed blocked us for some reason)
OK I found the problem: IP address was being blocked by the api provider . . . thanks for the advice anyways.