public function unlink($file) { if (!$this->check_login()) { return false; } return ftp_delete($this->conn_id, $file); }