I’m trying to parse some xml by using simplexml_load_file, do I need a simpleXML extension for Yii to do this?
I’m trying to parse some xml by using simplexml_load_file, do I need a simpleXML extension for Yii to do this?
SimpleXML is a PHP extension, you don’t need anything else to parse xml files, even Yii…
That’s what I thought, I’m getting this error now though, any ideas?
I/O warning : failed to load external entity "questions.xml"
here’s my code
$file= "questions.xml";
$xml = simplexml_load_file($file);
return $xml;
Sorry, I have to move the topic to "General PHP Topics" now.
Is that the full path to the file?