Forum Moderators: coopster
I want to open archive.xml.gz using SimpleXML. Here is my code:
$xmlgz = gzopen($xml_loc, 'r');
$contents = gzread($xmlgz, 10000);
$xml = simplexml_load_string($contents);
However this is not working. When I do var_dump($xml) I get
bool(false)
But I know the .gz file is being opened because when I do print_r($contents) the entire XML file is returned as a string on the page. Any thoughts?
[php.net...]