How Is Nail Fungus Treated?
Treatment for a nail fungus may include topical creams, gels, nail lacquers, or oral medications (antifungal drugs). Rarely, surgery may be required. Although seldom done, removal of the infected nail can be performed to permit direct application of a topical antifungal. Oral drugs, such as terbinfine, can cure about 50% of nail fungus infections.
Toenail infections are more difficult to treat than fingernail infections because the toenail grows more slowly. In addition, a damp, warm environment of a shoe or boot can encourage fungal growth.
Source: http://www.webmd.com