尝试使用
zip://包装器:
$handle = fopen('zip://test.zip#test.txt', 'r'); $result = '';while (!feof($handle)) { $result .= fread($handle, 8192);}fclose($handle);echo $result;
您也可以使用
file_get_contents:
$result = file_get_contents('zip://test.zip#test.txt'); echo $result;
欢迎分享,转载请注明来源:内存溢出
评论列表(0条)