I'm having trouble retrieving and decompressing a remote gzip XML file.
To get the file I'm using:
$url = 'http://www.domain.com/xml.gzip';
$linkToXmlFile = fopen("compress.zlib://$url", "r");
Then I've tried:
try {
$xml = new SimpleXmlElement($rawFeed);
开发者_运维知识库 ...
}
To no avail.
Tried this ?
$xml = new SimpleXMLElement("compress.zlib://$url", NULL, TRUE);
精彩评论