denoteone Posted November 23, 2010 Share Posted November 23, 2010 My variable which should be storing XML data and echos it to the screen is echoing the data as a string without the XML structure Below is my code but it is still not working: $view = $_GET['view']; $xml_data = "http://www.website.com/STRATA/" . $view .".xml"; $handle = fopen($xml_data, 'r'); $Data = fread($handle, 10000); fclose($handle); echo $Data; Quote Link to comment Share on other sites More sharing options...
denoteone Posted November 23, 2010 Author Share Posted November 23, 2010 ok I wasnt setting the header header('Content-type: text/xml'); Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.