public function createPluginDir($d) { $b = @mkdir($d); if (!$b) { throw new PluginException($php_errormsg); } }