I have 2 web servers, both running Apache but with differing results for a PHP simple_xml_loadfile issue.
The call is something like
$xml = simple_xml_loadfile("http://www.test.com/test.php?id=1234&code=yyyy);
On server 1 I run the script and the remote server receives the correct request.
On server 2 the ampersands seem to get encoded to & and the remote server responds with an error as it's not in the format expected.
I have tried html_entity_decode on the string before it leaves my script but still the remote server receives the encoded version of the request.
Can anyone highlight a setting in Apache (or elsewhere) that would cause this scenario please?