Overrides PoStreamInterface::open
public function open() { // Open in write mode. Will overwrite the stream if it already exists. $this->fd = fopen($this->getURI(), 'w'); // Write the header at the start. $this->writeHeader(); }