public function handleread($db, $path) { $book = $db->getBook($path[1]); $realbook = new ebook($book->file); header("Content-type: text/html"); echo $realbook->getChapter($path[2]); exit; }