homepage Welcome to WebmasterWorld Guest from
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
Become a Pro Member
Home / Forums Index / Code, Content, and Presentation / Apache Web Server
Forum Library, Charter, Moderators: Ocean10000 & incrediBILL & phranque

Apache Web Server Forum

SimpleXML Encoding issue

 9:02 am on Jul 22, 2011 (gmt 0)


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?

Many thanks



 11:00 am on Jul 25, 2011 (gmt 0)

To clarify this the second server (the one with the fault) seems to be automatically adding htmlspecialchars encoding to the request URL automatically

Is there a setting that would do this automatically? It's a centos 5.5 box if that helps.


Global Options:
 top home search open messages active posts  

Home / Forums Index / Code, Content, and Presentation / Apache Web Server
rss feed

All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
Home ¦ Free Tools ¦ Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About ¦ Library ¦ Newsletter
WebmasterWorld is a Developer Shed Community owned by Jim Boykin.
© Webmaster World 1996-2014 all rights reserved