public function chdir($path) { if (!$this->check_login()) { return false; } if (ftp_chdir($this->conn_id, $path) === false) { return false; } return true; }