Is there a way to get rid of foot fungus without going to the doctors?

Yes, but not advised. Treatment of tinea pedis (Athlete's foot), is generally a simple task involving twice daily topical application of OTC antifungal creams found in most pharmacies. It is generally best to see a doctor, however, to verify that your skin condition is truly tinea pedis and not something else. If there is an itch component to the skin your doctor can prescribe you a topical medication that is not OTC.
Is it on the nail. Or the skin? .