芝麻web文件管理V1.00
编辑当前文件:/home/prismawe/www/projets/include/class.xls.php
open($file); } function open($file) { if ($this->state != "CLOSED") { return false; } if (!empty($file)) { $this->fp = @fopen($file, "w+"); } else { return false; } if ($this->fp == false) { return false; } $this->state = "OPENED"; fwrite($this->fp, $this->GetHeader()); return $this->fp; } function close() { if ($this->state != "OPENED") { return false; } if ($this->newRow) { fwrite($this->fp, ""); $this->newRow = false; } fwrite($this->fp, $this->GetFooter()); fclose($this->fp); $this->state = "CLOSED"; return ; } function GetHeader() { $lastsav = date("e"); $header = <<
EOH; return $header; } function GetFooter() { return "