jonblockx Posted May 24, 2009 Share Posted May 24, 2009 ===== $contents = '<?xml version="1.0"?> <rss> <link>http://www.example.com/test?a=&b=&</link> </rss> '; $parser = xml_parser_create(''); xml_parse_into_struct($parser, trim($contents), $xml_values); print_r($xml_values[1]['value']); ===== Locally on my Mac MAMP (PHP Version 5.2.6) I get: http://www.example.com/test?a=&b=& However, in my Fedora (PHP Version 5.2.6) production server, I get: http://www.example.com/test?a=b= Where are my ampersands??? How do I make them appear on my Fedora server? Help! Thank you, Jon Link to comment https://forums.phpfreaks.com/topic/159513-why-doesnt-this-super-basic-xml-code-work-on-my-server/ Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.