嗨,我想提取一个KMZ文件,它有一个图像文件夹和一个kml文件
其他问题这里只有kml文件,但我的问题也有一个图片文件夹!,我如何提取它?我试过了,但没有用
$data = file_get_contents("test/test.kmz"); // url of the KMZ file
file_put_contents("/test/kmz_temp",$data);
ob_start();
passthru('unzip -p /test/kmz_temp');
$xml_data = ob_get_clean();
header("Content-type: text/xml");
dd($xml_data);还有这个
$zip = new ZipArchive();
$zip->open('test/test.kmz');
$zip->extractTo('/test/public');
$zip->close();**strong text**发布于 2016-08-17 13:24:25
我找到了解决办法
如果您更改文件的格式(同时将其移动到您的文件夹)以进行压缩,它将解压缩它。
https://stackoverflow.com/questions/38996986
复制相似问题