Answers.Body: <p>Yes, the files are 'real' HTML (or rather XHTML) and will work in any web browser.</p>
  
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2016-06-22T13:37:21.637Z
Answers.Text: Thank you for your answer! If I open an epub i can see the html files, these files are always there or they can be also in some subfolders?
Answers.UserDisplayName: CCT
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2016-06-22T14:29:09.283Z
Answers.Text: Those files usually are in a directory calles OEBPS, but in theory, they could be anywhere (the file `META-INF/container.xml` points to them).
Answers.UserDisplayName: CL.
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2016-06-22T16:42:39.773Z
Answers.Text: In the file you are mentioning i found this:  `<?xml version="1.0"?>
  <container version="1.0" xmlns="urn:oasis:names:tc:opendocument:xmlns:container">
     <rootfiles>
        <rootfile full-path="content.opf" media-type="application/oebps-package+xml"/>
     </rootfiles>
  </container> ` it points only to the opf file.
Answers.UserDisplayName: CCT
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2016-06-22T19:17:40.330Z
Answers.Text: So your `content.opf` is in the root directory?
Answers.UserDisplayName: CL.
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2016-06-22T19:31:24.857Z
Answers.Text: Yes. But i need ti know where are the HTML files, I want to interpret them.
Answers.UserDisplayName: CCT
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2016-06-23T06:31:34.513Z
Answers.Text: Read the [specification](http://idpf.org/epub).
Answers.UserDisplayName: CL.
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2016-06-22T13:20:00.473Z
Answers.LastActivityDate: 2016-06-22T13:20:00.473Z
Answers.UserDisplayName: CL.
Body: <p>I want to show my epub files on my site, so I'm thinking of creating my own reader in PHP. First I need to know how to read this file type.</p>
  
  <p>Can I show the HTML files that are in the epub directly in the browser? </p>
  
Tags: <epub><html>
Title: Parsing an epub file and displaying its contents on a website?
UserDisplayName: CCT
ThreadText: # Parsing an epub file and displaying its contents on a website?
  
  (Asked by: username_0 on 2016-06-22)
  
  I want to show my epub files on my site, so I'm thinking of creating my own reader in PHP. First I need to know how to read this file type.
  
  Can I show the HTML files that are in the epub directly in the browser?
  
  **Tags:** epub, html
  
  
  ---
  
  ## 1 answers
  
  ### Answer by username_1 on 2016-06-22. Score: 0 | Accepted answer
  
  Yes, the files are 'real' HTML (or rather XHTML) and will work in any web browser.
  
  > **Comments:**
  > **username_0**: Thank you for your answer! If I open an epub i can see the html files, these files are always there or they can be also in some subfolders?  
  > **username_1**: Those files usually are in a directory calles OEBPS, but in theory, they could be anywhere (the file `META-INF/container.xml` points to them).  
  > **username_0**: In the file you are mentioning i found this:  `<?xml version="1.0"?> <container version="1.0" xmlns="urn:oasis:names:tc:opendocument:xmlns:container">    <rootfiles>       <rootfile full-path="content.opf" media-type="application/oebps-package+xml"/>    </rootfiles> </container> ` it points only to the opf file.  
  > **username_1**: So your `content.opf` is in the root directory?  
  > **username_0**: Yes. But i need ti know where are the HTML files, I want to interpret them.  
  > **username_1**: Read the [specification](http://idpf.org/epub).  
  
  ---
  
  