我正在尝试使用PHP创建简单的阅读器。我有图书馆获取包括路径在内的章节列表。例如,我有
chapters => array (43)
0 => ePub\Definition\Chapter #d1af
title => "Prolog" (6)
src => "OEBPS/Text/Hra%20o%20truny%201%20-%20George%20Raymond%20Richard%20Martin_split_002.htm" (86)
position => 1
children => array ()
1 => ePub\Definition\Chapter #0b7d
title => "Bran" (4)
src => "OEBPS/Text/Hra%20o%20truny%201%20-%20George%20Raymond%20Richard%20Martin_split_003.htm" (86)
position => 2
children => array ()
2 => ePub\Definition\Chapter #6b22
title => "Catelyn" (7)
src => "OEBPS/Text/Hra%20o%20truny%201%20-%20George%20Raymond%20Richard%20Martin_split_004.htm" (86)
position => 3
children => array ()
3 => ePub\Definition\Chapter #d104
title => "Daenerys" (8)
src => "OEBPS/Text/Hra%20o%20truny%201%20-%20George%20Raymond%20Richard%20Martin_split_005.htm" (86)
position => 4
children => array ()
4 => ePub\Definition\Chapter #92cb
title => "Eddard" (6)
src => "OEBPS/Text/Hra%20o%20truny%201%20-%20George%20Raymond%20Richard%20Martin_split_006.htm" (86)
position => 5
children => array ()
5 => ePub\Definition\Chapter #81ac
title => "Jon" (3)
src => "OEBPS/Text/Hra%20o%20truny%201%20-%20George%20Raymond%20Richard%20Martin_split_007.htm" (86)
position => 6
children => array ()
我认为epub就像ZIP存档一样,所以我试图找到从ZIP存档中读取单个文件的解决方案。我找到this,但它对我不起作用。任何想法如何从epub读取文件,而不是在任何地方提取它?