protected function _make_writeable()
{
if (!is_resource($this->_output)) {
if (!file_exists($this->_output)) {
touch($this->_output);
}
$this->_output = fopen($this->_output, 'w+');
@stream_set_blocking($this->_output, false);
return true;
} else {
@stream_set_blocking($this->_output, false);
}
}