No = false; $this->Name = $sNm; $this->Type = PpsType_File; $this->PrevPps = false; $this->NextPps = false; $this->DirPps = false; $this->Time1st = false; $this->Time2nd = false; $this->StartBlock = false; $this->Size = false; $this->Data = ($sFile===false) ? $sData : ''; $this->Child = false; if ($sFile!==false) { if (is_ressource($sFile)) { $this->_PPS_FILE=$sFile; } elseif ($sFile=="") { $fname=tempnam("php_ole"); $this->_PPS_FILE=fopen($fname, "r+b"); } else { $fname=$sFile; $this->_PPS_FILE=fopen($fname, "r+b"); } if ($sData!==false) { fputs($this->_PPS_FILE, $sData); } } } function append ($sData) { if ($this->_PPS_FILE) { fputs($this->_PPS_FILE, $sData); } else { $this->Data.=$sData; } } } ?>