path = $path; else $this->path = realpath($_SERVER['DOCUMENT_ROOT']."/".$path); } public function call($file) { extract($this->data,EXTR_REFS|EXTR_OVERWRITE); include($file); } public function __get($offset) { return $data[$offset]; } public function __set($offset,$value) { $data[$offset] = $value; } } ?>