fp = fopen($path, $mode); return true; } /** * @param $count * * @return false|string */ public function stream_read($count) { return fread($this->fp, $count); } /** * @return false|int */ public function stream_tell() { return ftell($this->fp); } /** * @return bool */ public function stream_eof() { return feof($this->fp); } /** * @param $offset * @param $whence */ public function stream_seek($offset, $whence) { fseek($this->fp, $offset, $whence); } /** * @return array */ public function stream_stat() { return fstat($this->fp); } }