how to view as xml file php

paco82

New Member
i am using this code to get an file \[code\]$url="http://zz.com/a" $ch = curl_init(); $timeout = 5; curl_setopt($ch, CURLOPT_URL, $url); curl_setopt ($ch, CURLOPT_RETURNTRANSFER, 1); curl_setopt ($ch, CURLOPT_CONNECTTIMEOUT, $timeout); echo $xml = curl_exec($ch);\[/code\]it will be an xml file and i need to display it as xml if i display it is like an string i need to display it as an xml file
 
Back
Top