setOutputDir($this->config->outputDir . strtolower($this->getFormatName()) . '/'); break; //No verbose } } public function writeChunk($id, $fp) { $this->onNewPage(); $filename = $this->getOutputDir() . $id . $this->getExt(); rewind($fp); $content = "\n"; $content .= stream_get_contents($fp); if ($id === "") { $filename = $this->config->xmlFile; } echo "Filename: " . basename($filename) . "\n"; echo "Content:" . $content . "\n"; } }