public function mkdir($dir) { if (!$this->check_login()) { return false; } return ftp_mkdir($this->conn_id, $dir); }