/** * Full path to the install location of this application. * @return FILE_URL */ public function source_path() { $Result = new FILE_URL(realpath($this->_source_path())); $Result->strip_name(); $Result->go_back(); return $Result; }
/** * Return the server system temp directory. * @return string */ function temp_folder() { $name = tempnam('', 'WebCore'); unlink($name); $url = new FILE_URL($name); $url->strip_name(); return $url->as_text(); }