How longI have to take fluconazole to treat fungle infection? what is the reason for fungle infect?

i have had fungle infection since 2003-2004. no local treatment helped. it gets worse and worse. I feel that it is because my immune system is down. I didn't get this infection through non hygiene. how does it work?