Jump to content

read and echo XML not working


denoteone

Recommended Posts

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;

 

 

Link to comment
https://forums.phpfreaks.com/topic/219530-read-and-echo-xml-not-working/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.